summaryrefslogtreecommitdiffstats
path: root/src/cmd
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-19 21:26:04 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-19 21:26:04 (EDT)
commit44e452fb3c8cc7a093d72fbc280be3973e627a62 (patch)
treedc169666d13834de17d3c984317e29ec4af1d04f /src/cmd
parentc752393c58c37dc7e8403b8b87d0943c1fe8c8b9 (diff)
Add braces to param exps in arith substs
Diffstat (limited to 'src/cmd')
-rw-r--r--src/cmd/install.sh2
-rw-r--r--src/cmd/installer-pc.sh2
-rw-r--r--src/cmd/mkinitramfs.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/install.sh b/src/cmd/install.sh
index 638cbd1..a6c208a 100644
--- a/src/cmd/install.sh
+++ b/src/cmd/install.sh
@@ -32,7 +32,7 @@ cmd_install_main()
print_cmd_usage 'install' >&2
return 1
fi
- shift $(($OPTIND - 1))
+ shift $((${OPTIND} - 1))
if [ ${#} -lt 2 ]; then
print_cmd_usage 'install' >&2
diff --git a/src/cmd/installer-pc.sh b/src/cmd/installer-pc.sh
index 0c16ddf..19836c4 100644
--- a/src/cmd/installer-pc.sh
+++ b/src/cmd/installer-pc.sh
@@ -35,7 +35,7 @@ cmd_installer_pc_main()
print_cmd_usage 'installer-pc' >&2
return 1
fi
- shift $(($OPTIND - 1))
+ shift $((${OPTIND} - 1))
if [ "x${cmd_installer_pc_opt_a-}" = 'x' ]; then
print_cmd_usage 'installer-pc' >&2
diff --git a/src/cmd/mkinitramfs.sh b/src/cmd/mkinitramfs.sh
index 41e6327..3177071 100644
--- a/src/cmd/mkinitramfs.sh
+++ b/src/cmd/mkinitramfs.sh
@@ -31,7 +31,7 @@ cmd_mkinitramfs_main()
print_cmd_usage 'mkinitramfs' >&2
return 1
fi
- shift $(($OPTIND - 1))
+ shift $((${OPTIND} - 1))
if [ "x${cmd_mkinitramfs_opt_l-}" = 'x' ]; then
print_cmd_usage 'mkinitramfs' >&2