summaryrefslogtreecommitdiff
path: root/templates/system/time-zone/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/time-zone/node.def')
-rw-r--r--templates/system/time-zone/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/system/time-zone/node.def b/templates/system/time-zone/node.def
index fcbad601..ec3b430a 100644
--- a/templates/system/time-zone/node.def
+++ b/templates/system/time-zone/node.def
@@ -21,7 +21,8 @@ update: LTF="/usr/share/zoneinfo"
exit 1
fi
delete:expression: "sudo ln -fs /usr/share/zoneinfo/GMT /etc/localtime"
-allowed: word=${COMP_WORDS[$COMP_CWORD]}
+allowed: shopt -s nullglob
+ word=${COMP_WORDS[$COMP_CWORD]}
if [[ $word == */* ]]; then
marr=($(ls -d /usr/share/zoneinfo/$word*))
else