Name 386 packages i386 instead of 386

Fixes backwards-compatible package naming.
pull/9012/head
Mark Rushakoff 2017-10-25 15:53:35 -07:00
parent 3cf32a9358
commit bbae6e7674
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ while getopts hO:A:s arg; do
case "$arg" in
h) printHelp; exit 1;;
O) OS="$OPTARG";;
A) ARCH="$OPTARG";;
# For backwards compatibility, ensure the packages say i386 if using GOARCH=386.
A) ARCH="$(echo "$OPTARG" | sed 's/386/i386/')";;
s) STATIC="1";;
esac
done