Skip to content

Commit 8faf0a0

Browse files
authoredMay 18, 2021
Update install.sh
1 parent b637dc2 commit 8faf0a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎install.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ esac
4545

4646
if [ -z "${install_beta}" ]; then
4747
DOWNLOAD_URL=$(curl -fsSL https://api.github.com/repos/Mikubill/transfer/releases/latest | grep "browser_download_url.*$OS.*$ARCH" | cut -d '"' -f 4)
48+
curl -L "$DOWNLOAD_URL" | tar xz
4849
else
4950
DOWNLOAD_URL=$(curl -fsSL https://api.github.com/repos/Mikubill/transfer/releases/43093978 | grep "browser_download_url.*$OS.*$ARCH" | cut -d '"' -f 4 | head -n 1)
5051
# DOWNLOAD_URL=$(curl -fsSL https://api.github.com/repos/Mikubill/transfer/releases | grep "browser_download_url.*$OS.*$ARCH" | cut -d '"' -f 4 | head -n 1)
52+
curl -Lo "transfer" "$DOWNLOAD_URL"
53+
chmod a+x transfer
5154
fi
5255

53-
curl -L "$DOWNLOAD_URL" | tar xz
54-
5556
printf "\nTransfer has successfully downloaded.\n"
5657
exit 0

0 commit comments

Comments
 (0)
Please sign in to comment.