From 0f23767cf4fa27fea4104c6ec94d0e383146add4 Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Mon, 28 Nov 2022 08:34:13 +0800 Subject: [PATCH] Fix #225 again --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index e8572f7..c474900 100755 --- a/restore.sh +++ b/restore.sh @@ -129,7 +129,7 @@ Main() { elif [[ $LatestVersion != $CurrentVersion ]]; then if (( $(echo $CurrentVersion | cut -c -10 | sed -e 's/-//g') > $(echo $LatestVersion | cut -c -10 | sed -e 's/-//g') )); then Log "WARNING - Current version is newer than remote ($LatestVersion)" - elif [[ $(echo $CurrentVersion | cut -c -12) != $(echo $LatestVersion | cut -c -12) ]]; then + elif [[ $(echo $CurrentVersion | cut -c 12-) != $(echo $LatestVersion | cut -c 12-) ]]; then Echo "* A newer version of iOS-OTA-Downgrader is available." Echo "* Current version: $CurrentVersion" Echo "* Latest version: $LatestVersion"