summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-10-28 18:13:55 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-10-28 18:13:55 -0700
commit5aa479d716736be544f4e9fef3c7154b295f95e1 (patch)
tree03d7e52285c0901f4e2a366e65ac6451423a4ed1 /templates/system
parent223fd1ebb9f9f14c7f1b421c7da48a1755fc7737 (diff)
downloadvyatta-cfg-quagga-5aa479d716736be544f4e9fef3c7154b295f95e1.tar.gz
vyatta-cfg-quagga-5aa479d716736be544f4e9fef3c7154b295f95e1.zip
fix for bug 6388
* need nullglob to work.
Diffstat (limited to 'templates/system')
-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