Do chmod +x on bins

fixes issues with permissions
This commit is contained in:
LukeZGD 2023-02-06 15:27:47 +08:00
parent 3ea02d7698
commit 7c36321446

View File

@ -182,6 +182,7 @@ set_tool_paths() {
idevicererestore="sudo " idevicererestore="sudo "
ipwnder="sudo " ipwnder="sudo "
irecovery="sudo " irecovery="sudo "
sudo chmod +x $dir/*
fi fi
elif [[ $OSTYPE == "darwin"* ]]; then elif [[ $OSTYPE == "darwin"* ]]; then
@ -235,6 +236,9 @@ set_tool_paths() {
fi fi
log "Running on platform: $platform ($platform_ver)" log "Running on platform: $platform ($platform_ver)"
rm ../resources/sudoloop 2>/dev/null rm ../resources/sudoloop 2>/dev/null
if [[ $device_sudoloop != 1 || $platform != "linux" ]]; then
chmod +x $dir/*
fi
# common # common
if [[ $platform != "macos" ]]; then if [[ $platform != "macos" ]]; then