diff options
Diffstat (limited to 'templates/show/version/node.def')
-rw-r--r-- | templates/show/version/node.def | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/show/version/node.def b/templates/show/version/node.def index 771e56e..1a1adb0 100644 --- a/templates/show/version/node.def +++ b/templates/show/version/node.def @@ -1,6 +1,8 @@ help: "Show Vyatta version information" run: for cl in /usr/share/doc/vyatta-*/changelog.gz ; do - pkg=${cl%/*} ; - echo -n ${pkg##*/} ; - gunzip $cl | tail -n1 ; + dir=${cl%/*} ; + pkg=${dir##*/} ; + printf " %-20s " ${pkg} ; + test ${#pkg} -lt 20 || echo -ne \\n\\t ; + gunzip -c $cl | tail -n1 ; done |