This commit is contained in:
darkclip committed 2024-01-27 05:45:46 +08:00
1 parent 9c6408ef92
commit 99ac6a6061
1 file changed
+2 -2
+2 -2
View File
@@ -24,10 +24,10 @@ main(){
fi
echo "Update for $REPO"
api_url="https://api.github.com/repos/$REPO/releases/latest"
dl_url=$(curl -sSf $api_url | grep $build_arch | grep browser_download_url | cut -d '"' -f 4)
dl_url=$(curl -sSf $api_url | grep -i $build_arch | grep browser_download_url | cut -d '"' -f 4)
curr_ver=$($PROG_PATH/$PROG_NAME -v)
if (echo $dl_url | grep $curr_ver) >/dev/null 2>&1; then
if (echo $dl_url | grep -i $curr_ver) >/dev/null 2>&1; then
echo "Already latest version!"
else
tmp_dir="/tmp/$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)"