mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
Clean and exit 1 on SIGINT and SIGTERM
This commit is contained in:
parent
b136abe5ec
commit
1ea936d55f
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
trap "Clean" EXIT INT TERM
|
trap "Clean" EXIT
|
||||||
|
trap "Clean; exit 1" INT TERM
|
||||||
|
|
||||||
cd "$(dirname $0)"
|
cd "$(dirname $0)"
|
||||||
. ./resources/blobs.sh
|
. ./resources/blobs.sh
|
||||||
@ -8,7 +9,7 @@ cd "$(dirname $0)"
|
|||||||
. ./resources/downgrade.sh
|
. ./resources/downgrade.sh
|
||||||
. ./resources/ipsw.sh
|
. ./resources/ipsw.sh
|
||||||
|
|
||||||
if [[ $1 != 'NoColor' && $2 != 'NoColor' ]]; then
|
if [[ $1 != "NoColor" && $2 != "NoColor" ]]; then
|
||||||
Color_R=$(tput setaf 9)
|
Color_R=$(tput setaf 9)
|
||||||
Color_G=$(tput setaf 10)
|
Color_G=$(tput setaf 10)
|
||||||
Color_B=$(tput setaf 12)
|
Color_B=$(tput setaf 12)
|
||||||
|
Loading…
Reference in New Issue
Block a user