Correct the output of 'version -a'

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-04-12 18:56:36 -07:00
parent 32264c2e7e
commit 1477d60926

View File

@ -562,8 +562,8 @@ version_command() {
echo "shorewall-core: $(cat $g_sharedir/coreversion)" echo "shorewall-core: $(cat $g_sharedir/coreversion)"
for product in shorewall shorewall6 shorewall-lite shorewall6-lite shorewall-init; do for product in shorewall shorewall6 shorewall-lite shorewall6-lite shorewall-init; do
if [ -f $g_sharedir/version ]; then if [ -f ${SHAREDIR}/$product/version ]; then
echo "$product: $(cat $g_sharedir/version)" echo "$product: $(cat ${SHAREDIR}/$product/version)"
fi fi
done done
else else