mirror of
https://gitlab.com/shorewall/code.git
synced 2025-05-31 15:05:39 +02:00
Avoid hard dependency on awk
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4777 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
8bed6b458f
commit
76c7cdead7
@ -4909,7 +4909,11 @@ __EOF__
|
||||
#
|
||||
mycat()
|
||||
{
|
||||
awk 'BEGIN {blnk=0;}; /^\s*$/ {blnk=1; next; }; { if (blnk == 1 ) { print ""; blnk=0; }; print; }' $*
|
||||
if [ -n "$(mywhich awk)" ]; then
|
||||
awk 'BEGIN {blnk=0;}; /^\s*$/ {blnk=1; next; }; { if (blnk == 1 ) { print ""; blnk=0; }; print; }' $*
|
||||
else
|
||||
cat $*
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user