completion: Quote argument to unset

Otherwise it gets globbed and the wrong thing potentially gets unset.
Spotted by shellcheck.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2024-04-16 14:08:39 +01:00
parent 17f0cad2c7
commit 6024fb9753
No known key found for this signature in database
GPG Key ID: DCDF5885B1F3ED73

View File

@ -68,7 +68,7 @@ __gsettings() {
range=($(gsettings "$schemadir" range "${COMP_WORDS[$((coffset+2))]}" "${COMP_WORDS[$((coffset+3))]}" 2> /dev/null))
case "${range[0]}" in
enum)
unset range[0]
unset 'range[0]'
;;
*)
unset range