From bcb605e3407cf12531fc17adf34512305c955eec Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Wed, 30 Aug 2023 21:27:36 +0800 Subject: [PATCH] Change ecid hex to dec conversion --- restore.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restore.sh b/restore.sh index 934dd0d..8968298 100755 --- a/restore.sh +++ b/restore.sh @@ -555,7 +555,7 @@ device_get_info() { device_entry else device_type=$(echo "$device_type" | cut -c -$ProdCut) - device_ecid=$((16#$($irecovery -q | grep "ECID" | cut -c 9-))) # converts hex ecid to dec + device_ecid=$(printf "%d" $($irecovery -q | grep "ECID" | cut -c 7-)) # converts hex ecid to dec fi device_model=$($irecovery -q | grep "MODEL" | cut -c 8-) device_vers=$(echo "/exit" | $irecovery -s | grep "iBoot-")