diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-27 17:38:21 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-04-27 17:38:21 (EDT) |
commit | b89dc654b25fb8e64ae1a398df1614c27ba16c99 (patch) | |
tree | 3f8c6da975b302e1d2c4c6cd6713dd9482d48446 | |
parent | a437ef94594a649aef1409e4aaf08299856e795d (diff) |
src/cmd/*.sh: Shift consistently
-rw-r--r-- | src/cmd/help.sh | 1 | ||||
-rw-r--r-- | src/cmd/install.sh | 1 | ||||
-rw-r--r-- | src/cmd/installer-pc.sh | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/help.sh b/src/cmd/help.sh index 51eade4..9c45382 100644 --- a/src/cmd/help.sh +++ b/src/cmd/help.sh @@ -24,6 +24,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/install.sh b/src/cmd/install.sh index b354f1b..69c5083 100644 --- a/src/cmd/install.sh +++ b/src/cmd/install.sh @@ -43,6 +43,7 @@ cmd_install_main() # profile. suite="${1}" root="${2}" + shift 2 if [ "x${suite%%:*}" != "x${suite}" ]; then profile="${suite%%:*}" diff --git a/src/cmd/installer-pc.sh b/src/cmd/installer-pc.sh index bb0410d..d85558b 100644 --- a/src/cmd/installer-pc.sh +++ b/src/cmd/installer-pc.sh @@ -24,6 +24,7 @@ _cmd_installer_pc_log_print() { local prefix="${1}" local log="${2}" + shift 2 local line= IFS="${LF}" @@ -36,6 +37,7 @@ _cmd_installer_pc_log_print() _cmd_installer_pc_make_partition_and_fs() { local dev="${1}" + shift 1 local log= info "$(get_msg 'cmd_installer_pc_dd')" @@ -104,6 +106,8 @@ cmd_installer_pc_main() suite="${1}" dev="${2}" + shift 2 + if ! check_block "${dev}"; then return 2 fi |