Run bootstrap.sh even when given as cmd arg

This commit is contained in:
T. R. Bernstein
2024-06-26 21:00:21 +02:00
committed by T. R. Bernstein
parent 137a1cf53a
commit 5d8efcf238

View File

@@ -99,7 +99,7 @@ function main() {
popd -q popd -q
} }
if [[ "${ZSH_EVAL_CONTEXT}" == toplevel ]]; then if [[ "${ZSH_EVAL_CONTEXT}" == toplevel || "${ZSH_EVAL_CONTEXT}" == cmdarg ]]; then
_DIR="${0:A:h}" _DIR="${0:A:h}"
main "$@" main "$@"
fi fi