mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +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:
		| @@ -5,7 +5,7 @@ | |||||||
| #################################################################################################### | #################################################################################################### | ||||||
|  |  | ||||||
| __gsettings() { | __gsettings() { | ||||||
|   local choices coffset schemadir |   local choices coffset schemadir="" | ||||||
|  |  | ||||||
|   if [ ${COMP_CWORD} -gt 2 ]; then |   if [ ${COMP_CWORD} -gt 2 ]; then | ||||||
|       if [ ${COMP_WORDS[1]} = --schemadir ]; then |       if [ ${COMP_WORDS[1]} = --schemadir ]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user