File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,9 @@ IFS=$'\n\t'
1818# usage
1919
2020function ctrl_c {
21+ # shellcheck disable=SC2317
2122 echo -e " \\ n[❌] ${USER} has chosen to quit!"
23+ # shellcheck disable=SC2317
2224 exit 1
2325}
2426
@@ -143,29 +145,29 @@ function third_party_kexts {
143145
144146function main {
145147
146- declare -r arg=${1:- " " }
147-
148148 trap ctrl_c SIGINT
149149 # Detect and react to the user hitting CTRL + C
150- declare -a functions
151- functions=(timestamp version_info is_admin hardware_info time_stats filesystem_info security_info \
152- full_disk_access_check launchd_stuff third_party_kexts)
150+
151+ declare -r arg=${1:- " " }
153152
154153 case " ${arg} " in
155154
156155 usage|help|-h|--help|🤷♂️|🤷♀️|" ¯\_(ツ)_/¯" )
157156 usage
158- shift
159157 ;;
160158
161159 * )
162- echo
163- for function in " ${functions[@]} " ; do
164- " ${function} "
165- echo
166- done
160+ timestamp
161+ version_info
162+ is_admin
163+ hardware_info
164+ time_stats
165+ filesystem_info
166+ security_info
167+ full_disk_access_check
168+ launchd_stuff
169+ third_party_kexts
167170 exit 0
168- shift
169171 ;;
170172
171173 esac
You can’t perform that action at this time.
0 commit comments