diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-11-15 14:13:35 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-11-15 14:13:35 -0800 |
commit | 39b020a34b4735371d3602d534cd87dde837657e (patch) | |
tree | 87188cb69590351cc6c7e9c955696221f134e4a2 /functions/interpreter | |
parent | 106002ac868eff2f3c7117d88136d76b31445b6d (diff) | |
download | vyatta-op-39b020a34b4735371d3602d534cd87dde837657e.tar.gz vyatta-op-39b020a34b4735371d3602d534cd87dde837657e.zip |
Fix case where node.tag was sent to script instead of the actual argument
Diffstat (limited to 'functions/interpreter')
-rw-r--r-- | functions/interpreter/vyatta-op-run | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/functions/interpreter/vyatta-op-run b/functions/interpreter/vyatta-op-run index 9ea4368..7723855 100644 --- a/functions/interpreter/vyatta-op-run +++ b/functions/interpreter/vyatta-op-run @@ -127,6 +127,7 @@ _vyatta_op_run () i=1 declare -a args # array of expanded arguments for arg in "$@"; do + local orig_arg=$arg if [[ $arg == "*" ]]; then arg="*" #leave user defined wildcards alone else @@ -156,7 +157,11 @@ _vyatta_op_run () eval $restore_shopts return 1 fi - args[$i]=$arg + if [[ "$arg" == "node.tag" ]]; then + args[$i]=$orig_arg + else + args[$i]=$arg + fi let "i+=1" done |