summaryrefslogtreecommitdiff
path: root/templates/show
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-06-10 12:01:40 -0700
committerJohn Southworth <john.southworth@vyatta.com>2011-06-10 12:01:40 -0700
commit29356e57e7c350f6fa66b7bad777524f7a4434c8 (patch)
tree059a0346e6cdebca24265c861069733f282be252 /templates/show
parentec986ff1d3cd6d341305cedcd0fa73234c2a879a (diff)
downloadvyatta-op-29356e57e7c350f6fa66b7bad777524f7a4434c8.tar.gz
vyatta-op-29356e57e7c350f6fa66b7bad777524f7a4434c8.zip
Fix completion for image log files
Diffstat (limited to 'templates/show')
-rw-r--r--templates/show/log/image/node.tag/file/node.tag/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/show/log/image/node.tag/file/node.tag/node.def b/templates/show/log/image/node.tag/file/node.tag/node.def
index 6fe9d78..f347a86 100644
--- a/templates/show/log/image/node.tag/file/node.tag/node.def
+++ b/templates/show/log/image/node.tag/file/node.tag/node.def
@@ -1,6 +1,6 @@
help: Show contents of specified user-defined log file for image
allowed: local -a array ;
- array=( /live/image/boot/$4/live-rw/var/log/user/* ) ;
+ array=( /live/image/boot/${COMP_WORDS[3]}/live-rw/var/log/user/* ) ;
[ ${#array[@]} -gt 0 ] && echo -n ${array[@]##*/} || echo -n none
run: less $_vyatta_less_options \
--prompt=".$4 log, page %dt of %D" \