diff --git a/devtools.sh b/devtools.sh index d8158b7..bee6a92 100755 --- a/devtools.sh +++ b/devtools.sh @@ -94,7 +94,9 @@ main() { done eval set -- "${_noopts-""}" _cmd="${1-""}" - shift 1 || true + if [ $# -ge 1 ]; then + shift 1 + fi case "${_cmd-""}" in "init") init_command "$@"