mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 08:20:28 +00:00
Return 1 instead of -1 from semver/deb
This commit is contained in:
parent
2da3ef420c
commit
5315bc25c5
@ -7,7 +7,7 @@
|
|||||||
if [ `pwd` != `git rev-parse --show-toplevel` ]
|
if [ `pwd` != `git rev-parse --show-toplevel` ]
|
||||||
then
|
then
|
||||||
echo "You should run this script from the top-level directory of the git repo"
|
echo "You should run this script from the top-level directory of the git repo"
|
||||||
exit -1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PKGBRANCH=$(basename `git name-rev --name-only HEAD`)
|
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
|
elif [ $PKGARCH = "arm64" ]; then GOARCH=arm64 GOOS=linux ./build
|
||||||
else
|
else
|
||||||
echo "Specify PKGARCH=amd64,i386,mips,mipsel,armhf,arm64"
|
echo "Specify PKGARCH=amd64,i386,mips,mipsel,armhf,arm64"
|
||||||
exit -1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Building $PKGFILE"
|
echo "Building $PKGFILE"
|
||||||
|
@ -6,7 +6,7 @@ BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
|
|||||||
# Complain if the git history is not available
|
# Complain if the git history is not available
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
printf "unknown"
|
printf "unknown"
|
||||||
exit -1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove "/" characters from the branch name if present
|
# Remove "/" characters from the branch name if present
|
||||||
|
@ -19,11 +19,11 @@ if [ $? != 0 ]; then
|
|||||||
# Complain if the git history is not available
|
# Complain if the git history is not available
|
||||||
if [ $? != 0 ]; then
|
if [ $? != 0 ]; then
|
||||||
printf 'unknown'
|
printf 'unknown'
|
||||||
exit -1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf 'v0.0.%d' "$PATCH"
|
printf 'v0.0.%d' "$PATCH"
|
||||||
exit -1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get the number of merges on the current branch since the last tag
|
# Get the number of merges on the current branch since the last tag
|
||||||
|
Loading…
Reference in New Issue
Block a user