mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-29 17:51:48 +01:00
Add error checking to unzip and zip
to detect failure points when creating custom ipsws and other stuff
This commit is contained in:
parent
6e192ffa75
commit
bfb8f151dd
11
restore.sh
11
restore.sh
@ -111,6 +111,17 @@ For 64-bit checkm8 devices compatible with pwned restores:
|
|||||||
'
|
'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unzip2="$(command -v unzip)"
|
||||||
|
zip2="$(command -v zip)"
|
||||||
|
|
||||||
|
unzip() {
|
||||||
|
$unzip2 "$@" || error "An error occurred with the unzip operation: $*"
|
||||||
|
}
|
||||||
|
|
||||||
|
zip() {
|
||||||
|
$zip2 "$@" || error "An error occurred with the zip operation: $*"
|
||||||
|
}
|
||||||
|
|
||||||
set_tool_paths() {
|
set_tool_paths() {
|
||||||
: '
|
: '
|
||||||
sets variables: platform, platform_ver, dir
|
sets variables: platform, platform_ver, dir
|
||||||
|
Loading…
Reference in New Issue
Block a user