From f79dea0f5e1b89488d73bfb0360e651b8d578e15 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 11 Apr 2019 18:15:41 -0400 Subject: Consistently shift function arguments --- (limited to 'src/cmd') diff --git a/src/cmd/copy-suite.sh b/src/cmd/copy-suite.sh index 2e4f3be..4ea66e5 100644 --- a/src/cmd/copy-suite.sh +++ b/src/cmd/copy-suite.sh @@ -24,6 +24,7 @@ cmd_copy_suite_main() { local src_suite="${1}" local dst_suite="${2}" + shift 2 local src_chan= local src_dist= local dst_chan= diff --git a/src/cmd/help.sh b/src/cmd/help.sh index 7a940c4..a322fca 100644 --- a/src/cmd/help.sh +++ b/src/cmd/help.sh @@ -26,6 +26,7 @@ cmd_help_main() if [ ${#} -eq 1 ]; then cmd="${1}" + shift 1 if is_cmd "${cmd}"; then print_cmd_usage "${cmd}" return 0 diff --git a/src/cmd/remove-suite.sh b/src/cmd/remove-suite.sh index 35bae16..9c709ba 100644 --- a/src/cmd/remove-suite.sh +++ b/src/cmd/remove-suite.sh @@ -23,6 +23,7 @@ cmd_remove_suite_main() { local suite="${1}" + shift 1 local chan= local dist= diff --git a/src/cmd/remove.sh b/src/cmd/remove.sh index 64394c0..643aa10 100644 --- a/src/cmd/remove.sh +++ b/src/cmd/remove.sh @@ -24,6 +24,7 @@ cmd_remove_main() { local suite="${1}" local source="${2}" + shift 2 local chan= local dist= -- cgit v0.9.1