diff --git a/contrib/deb/generate.sh b/contrib/deb/generate.sh index 9d5064bd..f99d8348 100644 --- a/contrib/deb/generate.sh +++ b/contrib/deb/generate.sh @@ -7,7 +7,7 @@ if [ `pwd` != `git rev-parse --show-toplevel` ] then echo "You should run this script from the top-level directory of the git repo" - exit -1 + exit 1 fi PKGBRANCH=$(basename `git name-rev --name-only HEAD`) @@ -29,7 +29,7 @@ elif [ $PKGARCH = "armhf" ]; then GOARCH=arm GOOS=linux GOARM=7 ./build elif [ $PKGARCH = "arm64" ]; then GOARCH=arm64 GOOS=linux ./build else echo "Specify PKGARCH=amd64,i386,mips,mipsel,armhf,arm64" - exit -1 + exit 1 fi echo "Building $PKGFILE" diff --git a/contrib/semver/name.sh b/contrib/semver/name.sh index 9cab7e96..935cc750 100644 --- a/contrib/semver/name.sh +++ b/contrib/semver/name.sh @@ -6,7 +6,7 @@ BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null) # Complain if the git history is not available if [ $? != 0 ]; then printf "unknown" - exit -1 + exit 1 fi # Remove "/" characters from the branch name if present diff --git a/contrib/semver/version.sh b/contrib/semver/version.sh index f7769a34..143bd906 100644 --- a/contrib/semver/version.sh +++ b/contrib/semver/version.sh @@ -19,11 +19,11 @@ if [ $? != 0 ]; then # Complain if the git history is not available if [ $? != 0 ]; then printf 'unknown' - exit -1 + exit 1 fi printf 'v0.0.%d' "$PATCH" - exit -1 + exit 1 fi # Get the number of merges on the current branch since the last tag