Skip to content

Commit

Permalink
hack/release: add dependencies check
Browse files Browse the repository at this point in the history
  • Loading branch information
zegl committed Oct 5, 2023
1 parent 0000059 commit 0000060
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions hack/release
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ function echoinfo() {
printf "${LIGHT_GREEN}%s${NC}\n" "$1"
}

function echoerr() {
RED='\033[0;31m'
NC='\033[0m' # No Color
printf "${RED}%s${NC}\n" "$1" >&2
}


########################################################################################################################
# Dependencies check #
########################################################################################################################
if ! command -v sha256sum &>/dev/null; then
echoerr "[!] Dependency sha256sum was not found on your PATH. (brew install coreutils)"
exit 1
fi


git_sha1=$(git rev-parse HEAD)

# shellcheck disable=SC2001
Expand Down

0 comments on commit 0000060

Please sign in to comment.