mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-01-12 08:19:13 +01:00
Fix version update
This commit is contained in:
parent
02eb3162e8
commit
c734e18eda
@ -413,12 +413,14 @@ version_update() {
|
|||||||
else
|
else
|
||||||
req=".assets[] | select (.name|test(\"${platform}\")) | .browser_download_url"
|
req=".assets[] | select (.name|test(\"${platform}\")) | .browser_download_url"
|
||||||
fi
|
fi
|
||||||
|
pushd "$(dirname "$0")/tmp" >/dev/null
|
||||||
url="$(echo "$github_api" | $jq -r "$req")"
|
url="$(echo "$github_api" | $jq -r "$req")"
|
||||||
log "Downloading: $url"
|
log "Downloading: $url"
|
||||||
curl -L $url -o tmp/latest.zip
|
curl -L $url -o latest.zip
|
||||||
if [[ ! -s tmp/latest.zip ]]; then
|
if [[ ! -s latest.zip ]]; then
|
||||||
error "Download failed. Please run the script again"
|
error "Download failed. Please run the script again"
|
||||||
fi
|
fi
|
||||||
|
popd >/dev/null
|
||||||
log "Updating..."
|
log "Updating..."
|
||||||
cp resources/firstrun tmp 2>/dev/null
|
cp resources/firstrun tmp 2>/dev/null
|
||||||
rm -r bin/ resources/ LICENSE README.md restore.cmd restore.sh
|
rm -r bin/ resources/ LICENSE README.md restore.cmd restore.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user