summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" \