From 7c363214465cc08aebc4acde3b33bd1379a4689d Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Mon, 6 Feb 2023 15:27:47 +0800 Subject: [PATCH] Do chmod +x on bins fixes issues with permissions --- restore.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/restore.sh b/restore.sh index 050c847..3fde85b 100755 --- a/restore.sh +++ b/restore.sh @@ -182,6 +182,7 @@ set_tool_paths() { idevicererestore="sudo " ipwnder="sudo " irecovery="sudo " + sudo chmod +x $dir/* fi elif [[ $OSTYPE == "darwin"* ]]; then @@ -235,6 +236,9 @@ set_tool_paths() { fi log "Running on platform: $platform ($platform_ver)" rm ../resources/sudoloop 2>/dev/null + if [[ $device_sudoloop != 1 || $platform != "linux" ]]; then + chmod +x $dir/* + fi # common if [[ $platform != "macos" ]]; then