forked from extern/shorewall_code
Bring forward BusyBox ash workaround
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4398 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0a5565dc6c
commit
426641a572
@ -11,9 +11,15 @@ usage() {
|
||||
initialize
|
||||
|
||||
#
|
||||
# Start trace if first arg is "debug" or "trace"
|
||||
# Start trace if first arg is "debug" or "trace" (the awkward code works around
|
||||
# a bug in BusyBox ash on some distros).
|
||||
#
|
||||
[ $# -gt 1 ] && [ "$1" = "debug" -o "$1" = "trace" ] && { set -x ; shift ; }
|
||||
if [ $# -gt 1 ]; then
|
||||
if [ "$1" = "debug" ] || [ "$1" = "trace" ]; then
|
||||
set -x
|
||||
shift
|
||||
fi
|
||||
fi
|
||||
|
||||
finished=0
|
||||
|
||||
|
@ -1567,10 +1567,12 @@ make_verbose() {
|
||||
#
|
||||
debugging=
|
||||
|
||||
if [ $# -gt 0 ] && [ "$1" = "debug" -o "$1" = "trace" ]; then
|
||||
if [ $# -gt 0 ] ; then
|
||||
if [ "$1" = "debug" ] || [ "$1" = "trace" ]; then
|
||||
debugging=debug
|
||||
shift
|
||||
fi
|
||||
fi
|
||||
|
||||
nolock=
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user