From c62b4cabc722d386fe50712b81e8c94b852b653b Mon Sep 17 00:00:00 2001 From: jrfnl Date: Tue, 21 Jan 2025 14:15:58 +0100 Subject: [PATCH] Use -n instead of ! -z --- tests/utils/proxy/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/proxy/start.sh b/tests/utils/proxy/start.sh index e1e30e4b7..f5807304d 100755 --- a/tests/utils/proxy/start.sh +++ b/tests/utils/proxy/start.sh @@ -5,7 +5,7 @@ PORT=${PORT:-9000} PROXYBIN=${PROXYBIN:-"$(which mitmdump)"} ARGS="-s '$PROXYDIR/proxy.py' -p $PORT" -if [[ ! -z "$AUTH" ]]; then +if [[ -n "$AUTH" ]]; then ARGS="$ARGS --proxyauth $AUTH" fi PIDFILE="$PROXYDIR/proxy-$PORT.pid"