diff options
author | John Southworth <john.southworth@vyatta.com> | 2011-06-10 12:01:40 -0700 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2011-06-10 12:01:40 -0700 |
commit | 29356e57e7c350f6fa66b7bad777524f7a4434c8 (patch) | |
tree | 059a0346e6cdebca24265c861069733f282be252 /templates/show | |
parent | ec986ff1d3cd6d341305cedcd0fa73234c2a879a (diff) | |
download | vyatta-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.def | 2 |
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" \ |