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
|
#!/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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user