diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-10-28 18:13:55 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-10-28 18:13:55 -0700 |
commit | 5aa479d716736be544f4e9fef3c7154b295f95e1 (patch) | |
tree | 03d7e52285c0901f4e2a366e65ac6451423a4ed1 /templates/system/time-zone | |
parent | 223fd1ebb9f9f14c7f1b421c7da48a1755fc7737 (diff) | |
download | vyatta-cfg-system-5aa479d716736be544f4e9fef3c7154b295f95e1.tar.gz vyatta-cfg-system-5aa479d716736be544f4e9fef3c7154b295f95e1.zip |
fix for bug 6388
* need nullglob to work.
Diffstat (limited to 'templates/system/time-zone')
-rw-r--r-- | templates/system/time-zone/node.def | 3 |
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 |