Merge pull request #84 from sasa8810/main

thank you sass
This commit is contained in:
Edwin Nuñez 2023-12-31 11:22:39 -04:00 committed by GitHub
commit a9ca4ee0a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,18 @@
#!/usr/bin/env bash
if [ "$(uname)" == "Linux" ]; then
if [ "$EUID" -ne 0 ]; then
echo "You have to run this as root on Linux."
echo "Please type your password"
exec sudo ./downr1n.sh $@
fi
else
if [ "$EUID" = "0" ]; then
echo "Please don't run as root on macOS. It just breaks permissions."
exit 1
fi
fi
mkdir -p logs
mkdir -p boot
mkdir -p ipsw/extracted
@ -1296,4 +1309,4 @@ if [ true ]; then
fi
} 2>&1 | tee logs/${log}
} 2>&1 | tee logs/${log}