diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2007-09-20 19:04:35 -0700 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2007-09-20 19:04:35 -0700 |
commit | a5b2f72e51608a7a903dbfc02e858d0056948c6b (patch) | |
tree | 194ae6812595f87ff2f9b16520542977eae2b74b /templates/show | |
parent | 00b78e597b6e3aa1fd65ffdd7ea1ff2a2ac019d5 (diff) | |
download | vyatta-op-a5b2f72e51608a7a903dbfc02e858d0056948c6b.tar.gz vyatta-op-a5b2f72e51608a7a903dbfc02e858d0056948c6b.zip |
beautify show version
Diffstat (limited to 'templates/show')
-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 |