mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 14:48:51 +01:00
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,9 +1567,11 @@ make_verbose() {
|
||||
#
|
||||
debugging=
|
||||
|
||||
if [ $# -gt 0 ] && [ "$1" = "debug" -o "$1" = "trace" ]; then
|
||||
debugging=debug
|
||||
shift
|
||||
if [ $# -gt 0 ] ; then
|
||||
if [ "$1" = "debug" ] || [ "$1" = "trace" ]; then
|
||||
debugging=debug
|
||||
shift
|
||||
fi
|
||||
fi
|
||||
|
||||
nolock=
|
||||
|
Loading…
Reference in New Issue
Block a user