Stupid error in placement of time check

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4474 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
paulgear 2006-08-29 06:22:17 +00:00
parent b8a9da7e4b
commit a8be4a0b55

View File

@ -97,14 +97,16 @@ DIR=/etc/shorewall
SW_PATH=/sbin/shorewall
PATH=$PATH:
if [ "$TIME" -gt 0 ]; then
TIME="time"
else
TIME=""
fi
for HOST; do
shoregen $HOST
rsync $RSYNC_ARGS SPOOL/$HOST/ $USER@$HOST:$DIR/
if [ "$TIME" -gt 0 ]; then
TIME=time
else
TIME=""
fi
if [ "$CHECK" -gt 0 ]; then
$TIME ssh -l $USER -t $HOST $SW_PATH check
fi