diff options
author | Dmitry V. Levin <ldv@strace.io> | 2023-03-31 08:00:00 +0000 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-04-01 01:48:44 +0800 |
commit | e873a9f18a321f27f8015646c390d2112b5f8464 (patch) | |
tree | 0c234139bb4b1d680f3ece6c898e1ba87e09da06 /shell-completion | |
parent | 27d45db38c29d0eb5e2d707507b066438340a792 (diff) | |
download | systemd-e873a9f18a321f27f8015646c390d2112b5f8464.tar.gz |
treewide: fix unnecessary $ on arithmetic variables
This should fix shellcheck warning SC2004.
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/busctl | 2 | ||||
-rw-r--r-- | shell-completion/bash/portablectl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell-completion/bash/busctl b/shell-completion/bash/busctl index cebd25a871..ee160a7900 100644 --- a/shell-completion/bash/busctl +++ b/shell-completion/bash/busctl @@ -139,7 +139,7 @@ _busctl() { fi done - n=$(($COMP_CWORD - $i)) + n=$((COMP_CWORD - i)) if [[ -z ${verb-} ]]; then comps=${VERBS[*]} diff --git a/shell-completion/bash/portablectl b/shell-completion/bash/portablectl index 71789277b0..31601dceb2 100644 --- a/shell-completion/bash/portablectl +++ b/shell-completion/bash/portablectl @@ -78,7 +78,7 @@ _portablectl() { fi done - n=$(($COMP_CWORD - $i)) + n=$((COMP_CWORD - i)) if [[ -z ${verb-} ]]; then comps=${VERBS[*]} |