completion: Drop unnecessary $ from variables in arithmetic expressions

It’s not needed, according to shellcheck.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall
2024-04-16 14:03:19 +01:00
parent c79575362e
commit a7ad2a4c3a
4 changed files with 13 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ __gdbus() {
local colon_word=${cur%${cur##*:}}
local i=${#COMPREPLY[*]}
while [ $((--i)) -ge 0 ]; do
COMPREPLY[$i]=${COMPREPLY[$i]#"$colon_word"}
COMPREPLY[i]=${COMPREPLY[i]#"$colon_word"}
done
;;
esac