summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2009-07-29 12:00:32 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2009-07-29 12:00:32 -0700
commitf3744da98332e55d0487d8619ceb8ae7a0db3ac3 (patch)
treec687c4db5b60824140b119d8bb333612ba70df1a /scripts
parent840472340a7566b6850badf1e70ed0729e498a7e (diff)
downloadvyatta-cfg-f3744da98332e55d0487d8619ceb8ae7a0db3ac3.tar.gz
vyatta-cfg-f3744da98332e55d0487d8619ceb8ae7a0db3ac3.zip
update cli-expand-var script to match current variable reference syntax.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-cli-expand-var.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-cli-expand-var.pl b/scripts/vyatta-cli-expand-var.pl
index f690f0b..f3bda2d 100755
--- a/scripts/vyatta-cli-expand-var.pl
+++ b/scripts/vyatta-cli-expand-var.pl
@@ -34,7 +34,7 @@ $_ = $ARGV[0];
# basic format check:
# '(' ')' not allowed in reference.
# only allow absolute path for now.
-if (!/^\$\(\/([^()]+)\)$/) {
+if (!/^\$VAR\(\/([^()]+)\)$/) {
print STDERR "invalid variable reference (invalid format)\n";
exit 1;
}