From 245370e98d09adc8256e9be4ddc81347379abc19 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 19 Apr 2023 18:11:06 +0800 Subject: [PATCH] Fix error on bsd sed gnu tools > bsd tools. --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 0a852eb..3806284 100755 --- a/restore.sh +++ b/restore.sh @@ -392,7 +392,7 @@ version_check() { else log "Checking for updates..." github_api=$(curl https://api.github.com/repos/LukeZGD/Legacy-iOS-Kit/releases/latest 2>/dev/null) - version_latest=$(echo "$github_api" | grep "latest/Legacy-iOS-Kit_complete" | cut -c 123- | cut -c -9 | sed -r 's/\.$//') + version_latest=$(echo "$github_api" | grep "latest/Legacy-iOS-Kit_complete" | cut -c 123- | cut -c -9 | sed -e 's/\.$//') git_hash_latest=$(echo "$github_api" | grep "latest/git-hash" | cut -c 119- | cut -c -7) if [[ -z $version_latest ]]; then warn "Failed to check for updates. GitHub may be down or blocked by your network."