Fix install script.

This commit is contained in:
David Newhall II 2019-07-08 00:14:16 -07:00
parent 96dcacfa10
commit b735c92af9
2 changed files with 2 additions and 5 deletions

View File

@ -6,7 +6,7 @@ set -e -o pipefail
VERSION=$(git tag -l --merged | tail -n1 | tr -d v) # 1.2.3
SHORTVER=$(echo $VERSION | cut -d. -f1,2) # 1.2
if [ "$BUILDS" != "" ] && [ "$VERSION" != "" ]; then
if [ "$BUILDS" != "" ]; then
TAGS=$DOCKER_TAG
fi

View File

@ -19,12 +19,9 @@ if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "amd64" ]; then
elif [[ $ARCH == *386* ]] || [[ $ARCH == *686* ]]; then
ARCH="i386"
elif [[ $ARCH == *arm64* ]] || [[ $ARCH == *armv8* ]]; then
echo "Unsupported Architecture: ${ARCH}, sorry!"
exit 1
ARCH="arm64"
elif [[ $ARCH == *armv6* ]] || [[ $ARCH == *armv7* ]]; then
ARCH="armhf"
elif [[ $ARCH == *arm* ]]; then
ARCH="arm"
else
echo "Unknown Architecture. Submit a pull request to fix this, please."
echo ==> $ARCH