File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ mkdir -p $GOBREW_BIN_DIR
1111
1212GOBREW_ARCH_BIN=' '
1313GOBREW_BIN=' gobrew'
14+ GOBREW_VERSION=${1:- latest}
1415
1516THISOS=$( uname -s)
1617ARCH=$( uname -m)
@@ -56,10 +57,15 @@ if [ -z "$GOBREW_ARCH_BIN" ]; then
5657 exit 1
5758fi
5859
59- echo " Installing gobrew from: https://github.com/kevincobain2000/gobrew/releases/latest/download/$GOBREW_ARCH_BIN ..."
60+ DOWNLOAD_URL=" https://github.com/kevincobain2000/gobrew/releases/download/$GOBREW_VERSION /$GOBREW_ARCH_BIN "
61+ if [ " $GOBREW_VERSION " = " latest" ]; then
62+ DOWNLOAD_URL=" https://github.com/kevincobain2000/gobrew/releases/$GOBREW_VERSION /download/$GOBREW_ARCH_BIN "
63+ fi
64+
65+ echo " Installing gobrew from: $DOWNLOAD_URL "
6066echo " "
6167
62- curl -kL --progress-bar https://github.com/kevincobain2000/gobrew/releases/latest/download/ $GOBREW_ARCH_BIN -o $GOBREW_BIN_DIR /$GOBREW_BIN
68+ curl -kL --progress-bar $DOWNLOAD_URL -o $GOBREW_BIN_DIR /$GOBREW_BIN
6369
6470chmod +x $GOBREW_BIN_DIR /$GOBREW_BIN
6571
You can’t perform that action at this time.
0 commit comments