From 9149e072dbaad2dec971ba86a7b8f584e71f48ca Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 7 Jan 2012 08:02:24 -0800 Subject: [PATCH] Allow output to stdout in an exported params file Signed-off-by: Tom Eastep --- Shorewall/lib.common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/lib.common b/Shorewall/lib.common index 71ad15042..f61aca5ba 100644 --- a/Shorewall/lib.common +++ b/Shorewall/lib.common @@ -38,7 +38,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