From aab9fb1d8e35ed70878c441d19084c438d40719c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 7 Jan 2012 07:55:55 -0800 Subject: [PATCH] Work around 'echo' commands in /etc/shorewall[6]/params Signed-off-by: Tom Eastep --- Shorewall-core/lib.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-core/lib.common b/Shorewall-core/lib.common index 5bcb831b7..0379f70f4 100644 --- a/Shorewall-core/lib.common +++ b/Shorewall-core/lib.common @@ -82,7 +82,7 @@ get_script_version() { # $1 = script verbosity="$VERBOSITY" VERBOSITY=0 - temp=$( $SHOREWALL_SHELL $1 version | sed 's/-.*//' ) + temp=$( $SHOREWALL_SHELL $1 version | tail -n 1 | sed 's/-.*//' ) if [ $? -ne 0 ]; then version=0