mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-10 06:13:12 +01:00
Trapping the script
Using these signals: ``` SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM SIGTSTP ``` Fixed #272
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
# MARK: check minimal macOS requirement
|
||||
# MARK: 3 Arguments
|
||||
|
||||
# Start trapping the script
|
||||
trap_with_arg func_trap SIGHUP SIGINT SIGQUIT SIGABRT SIGTERM SIGTSTP
|
||||
|
||||
# check minimal macOS requirement
|
||||
autoload is-at-least
|
||||
|
||||
installedOSversion=$(sw_vers -productVersion)
|
||||
@@ -125,4 +130,4 @@ valuesfromarguments)
|
||||
fi
|
||||
;;
|
||||
|
||||
# label descriptions start here
|
||||
# Mark: label descriptions start here
|
||||
|
||||
Reference in New Issue
Block a user