mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
completion: make gsettings work in nounset mode
With the shell in nounset mode, an error is emitted on referencing `schemadir` as it is not initialized in all code paths. Initialize to an empty string to fix. Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
This commit is contained in:
parent
573b4e35d1
commit
bf1508fa76
@ -5,7 +5,7 @@
|
||||
####################################################################################################
|
||||
|
||||
__gsettings() {
|
||||
local choices coffset schemadir
|
||||
local choices coffset schemadir=""
|
||||
|
||||
if [ ${COMP_CWORD} -gt 2 ]; then
|
||||
if [ ${COMP_WORDS[1]} = --schemadir ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user