Move verify prereqs check into 'main'

This commit is contained in:
vlad 2021-12-21 02:08:26 -08:00
parent c7f7b0c6fb
commit 9b11316463

5
View File

@ -1,7 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
main() { main() {
[[ $(type -t _verify-prerequisites) == "function" ]] && ! _verify-prerequisites && exit 1
redefine-functions-defined-with-selector-16 redefine-functions-defined-with-selector-16
command="$1" command="$1"
shift shift
if [[ $(type -t "⚡$command") == "function" ]]; then if [[ $(type -t "⚡$command") == "function" ]]; then
@ -80,6 +83,4 @@ _wrapper() {
./$wrapper_root/bin "$@" ./$wrapper_root/bin "$@"
} }
[[ $(type -t _verify-prerequisites) == "function" ]] && ! _verify-prerequisites && exit 1
main "$@" main "$@"