mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-25 07:41:49 +01:00
Update first checks
This commit is contained in:
parent
c641698877
commit
adcb0a19ef
15
restore.sh
15
restore.sh
@ -59,19 +59,22 @@ Main() {
|
|||||||
Echo " Downgrader script by LukeZGD "
|
Echo " Downgrader script by LukeZGD "
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
if [[ ! -d ./resources ]]; then
|
||||||
|
Error "resources folder cannot be found. Replace resources folder and try again." \
|
||||||
|
"If resources folder is present try removing spaces from path/folder name"
|
||||||
|
fi
|
||||||
|
|
||||||
SetToolPaths
|
SetToolPaths
|
||||||
|
if [[ $? != 0 ]]; then
|
||||||
|
Error "Setting tool paths failed. Your copy of iOS-OTA-Downgrader seems to be incomplete."
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! $platform ]]; then
|
if [[ ! $platform ]]; then
|
||||||
Error "Platform unknown/not supported."
|
Error "Platform unknown/not supported."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d ./resources ]]; then
|
|
||||||
Error "resources folder cannot be found. Replace resources folder and try again" \
|
|
||||||
"If resources folder is present try removing spaces from path/folder name"
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod +x ./resources/*.sh ./resources/tools/*
|
chmod +x ./resources/*.sh ./resources/tools/*
|
||||||
if [[ $? == 1 ]]; then
|
if [[ $? != 0 ]]; then
|
||||||
Log "Warning - An error occurred in chmod. This might cause problems..."
|
Log "Warning - An error occurred in chmod. This might cause problems..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user