From: PHO Date: Thu, 21 Jun 2012 06:20:06 +0000 (+0900) Subject: bugfix X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=4f3b020ed7d20ac4e6598f53030b9f544b408e31;p=autobuild.git bugfix --- diff --git a/src/main.bash b/src/main.bash index 32a49d9..6c0b3c4 100644 --- a/src/main.bash +++ b/src/main.bash @@ -62,7 +62,9 @@ function main () { echo "Usage: $0 [build | doc | check | clean | dist | install]" >&2 exit 1 esac - shift + if (( $# > 0 )); then + shift + fi "$cmd" "$@" }