We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b637dc2 commit 8faf0a0Copy full SHA for 8faf0a0
install.sh
@@ -45,12 +45,13 @@ esac
45
46
if [ -z "${install_beta}" ]; then
47
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
49
else
50
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)
51
# 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
54
fi
55
-curl -L "$DOWNLOAD_URL" | tar xz
-
56
printf "\nTransfer has successfully downloaded.\n"
57
exit 0
0 commit comments