From 2d1a12f016e5cffece91daabc7604c2ef016f49a Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 12 Apr 2012 18:56:36 -0700 Subject: [PATCH] Correct the output of 'version -a' Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 4b462ca8e..c583ec334 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -562,8 +562,8 @@ version_command() { echo "shorewall-core: $(cat $g_sharedir/coreversion)" for product in shorewall shorewall6 shorewall-lite shorewall6-lite shorewall-init; do - if [ -f $g_sharedir/version ]; then - echo "$product: $(cat $g_sharedir/version)" + if [ -f ${SHAREDIR}/$product/version ]; then + echo "$product: $(cat ${SHAREDIR}/$product/version)" fi done else