Correct 'sed' command

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-10-22 09:56:59 -07:00
parent 13a321726c
commit 5b26f1939b
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -3566,7 +3566,7 @@ blacklist_command() {
if [ $VERBOSITY -gt 1 ]; then
echo "$message" | awk '/have been deleted/ { sub( /^.*: /, "" ); sub( / /, " src " ); }; { print; }'
else
echo "$message" | head -n1 | sed '/^.*: //; s/ / src /'
echo "$message" | head -n1 | sed 's/^.*: //; s/ / src /'
fi
fi
@ -3576,7 +3576,7 @@ blacklist_command() {
if [ $VERBOSITY -gt 1 ]; then
echo "$message" | awk '/have been deleted/ { sub( /^.*: /, "" ); sub( / /, " dst " ); }; { print; }'
else
echo "$message" | head -n1 | sed '/^.*: //; s/ / dst /'
echo "$message" | head -n1 | sed 's/^.*: //; s/ / dst /'
fi
fi
fi