summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-09-20 19:04:35 -0700
committerTom Grennan <tgrennan@vyatta.com>2007-09-20 19:04:35 -0700
commita5b2f72e51608a7a903dbfc02e858d0056948c6b (patch)
tree194ae6812595f87ff2f9b16520542977eae2b74b /templates
parent00b78e597b6e3aa1fd65ffdd7ea1ff2a2ac019d5 (diff)
downloadvyatta-op-a5b2f72e51608a7a903dbfc02e858d0056948c6b.tar.gz
vyatta-op-a5b2f72e51608a7a903dbfc02e858d0056948c6b.zip
beautify show version
Diffstat (limited to 'templates')
-rw-r--r--templates/show/version/node.def8
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