From 5aa479d716736be544f4e9fef3c7154b295f95e1 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 28 Oct 2010 18:13:55 -0700 Subject: fix for bug 6388 * need nullglob to work. --- templates/system/time-zone/node.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates') 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 -- cgit v1.2.3