mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
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:
parent
17f0cad2c7
commit
6024fb9753
@ -68,7 +68,7 @@ __gsettings() {
|
|||||||
range=($(gsettings "$schemadir" range "${COMP_WORDS[$((coffset+2))]}" "${COMP_WORDS[$((coffset+3))]}" 2> /dev/null))
|
range=($(gsettings "$schemadir" range "${COMP_WORDS[$((coffset+2))]}" "${COMP_WORDS[$((coffset+3))]}" 2> /dev/null))
|
||||||
case "${range[0]}" in
|
case "${range[0]}" in
|
||||||
enum)
|
enum)
|
||||||
unset range[0]
|
unset 'range[0]'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
unset range
|
unset range
|
||||||
|
Loading…
Reference in New Issue
Block a user