summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-08-30 18:26:54 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-08-30 18:26:54 -0500
commitc8d0f6b633c7ad8c12f423518f1d2dbbdfe52ce3 (patch)
treeb9d6602a6f72802dc5b870f385ba1ffed137ef50 /functions
parent8f284d93562adf38220f51ac95e2b471022010eb (diff)
downloadvyatta-op-c8d0f6b633c7ad8c12f423518f1d2dbbdfe52ce3.tar.gz
vyatta-op-c8d0f6b633c7ad8c12f423518f1d2dbbdfe52ce3.zip
Only generate directory names for path expansions, node.def is never a valid completion unless part of a filename which is handled differently
Diffstat (limited to 'functions')
-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