From ccc940d3a00c7963f020d97bdc51b055f80fe926 Mon Sep 17 00:00:00 2001 From: hayao Date: Fri, 5 Apr 2024 20:46:01 +0900 Subject: [PATCH] Fix: No command error --- devtools.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 "$@"