summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--functions/interpreter/vyatta-op-run2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions/interpreter/vyatta-op-run b/functions/interpreter/vyatta-op-run
index 883e03e..2d578b9 100644
--- a/functions/interpreter/vyatta-op-run
+++ b/functions/interpreter/vyatta-op-run
@@ -71,7 +71,7 @@ _vyatta_op_conv_node_path ()
local -a ARR
node_path=$1
node=$2
- ARR=( "$node_path/$node"* )
+ ARR=( $(compgen -d $node_path/$node) )
if [[ "${#ARR[@]}" == "1" ]]; then
echo ${ARR[0]##*/}
elif [[ "${#ARR[@]}" == "0" ]]; then