Move verify prereqs check into 'main'
This commit is contained in:
parent
c7f7b0c6fb
commit
9b11316463
5
⚡
5
⚡
@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
main() {
|
||||
[[ $(type -t _verify-prerequisites) == "function" ]] && ! _verify-prerequisites && exit 1
|
||||
|
||||
redefine-functions-defined-with-selector-16
|
||||
|
||||
command="$1"
|
||||
shift
|
||||
if [[ $(type -t "⚡$command") == "function" ]]; then
|
||||
@ -80,6 +83,4 @@ _wrapper() {
|
||||
./$wrapper_root/bin "$@"
|
||||
}
|
||||
|
||||
[[ $(type -t _verify-prerequisites) == "function" ]] && ! _verify-prerequisites && exit 1
|
||||
|
||||
main "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user