Skip to content

Commit

Permalink
sync downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed May 20, 2017
1 parent d4fe8e8 commit bb00d68
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions godownloader-misspell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -220,21 +220,22 @@ ARCH=$(uname_arch)

# adjust archive name based on OS
case ${OS} in
386) OS=32-bit ;;
amd64) OS=64-bit ;;
darwin) OS=macOS ;;
386) OS=32bit ;;
amd64) OS=64bit ;;
darwin) OS=mac ;;
esac

# adjust archive name based on ARCH
case ${ARCH} in
386) ARCH=32-bit ;;
amd64) ARCH=64-bit ;;
darwin) ARCH=macOS ;;
386) ARCH=32bit ;;
amd64) ARCH=64bit ;;
darwin) ARCH=mac ;;
esac

echo "$PREFIX: found version ${VERSION} for ${OS}/${ARCH}"

NAME=${BINARY}_${VERSION}_${OS}_${ARCH}
if [ ! -z "${ARM}" ]; then ARM="v$ARM"; fi
NAME=${BINARY}_${OS}_${ARCH}${ARM}
TARBALL=${NAME}.${FORMAT}
TARBALL_URL=https://github.com/${OWNER}/${REPO}/releases/download/v${VERSION}/${TARBALL}
CHECKSUM=${REPO}_checksums.txt
Expand Down

0 comments on commit bb00d68

Please sign in to comment.