Insure that VERBOSITY=0 when interrogating compiled script version

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-10-28 11:24:52 -07:00
parent ab65b7c274
commit e40be793ba
2 changed files with 12 additions and 0 deletions

View File

@ -34,6 +34,10 @@ get_script_version() { # $1 = script
local version
local ifs
local digits
local verbosity
verbosity="$VERBOSITY"
VERBOSITY=0
temp=$( $SHOREWALL_SHELL $1 version | sed 's/-.*//' )
@ -54,6 +58,8 @@ get_script_version() { # $1 = script
fi
echo $version
VERBOSITY="$verbosity"
}
#

View File

@ -32,6 +32,10 @@ get_script_version() { # $1 = script
local version
local ifs
local digits
local verbosity
verbosity="$VERBOSITY"
VERBOSITY=0
temp=$( $SHOREWALL_SHELL $1 version | sed 's/-.*//' )
@ -52,6 +56,8 @@ get_script_version() { # $1 = script
fi
echo $version
VERBOSITY="$verbosity"
}
#