Skip to content

Commit

Permalink
Use -n instead of ! -z
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 21, 2025
1 parent 89a5c04 commit c62b4ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/utils/proxy/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PORT=${PORT:-9000}

PROXYBIN=${PROXYBIN:-"$(which mitmdump)"}
ARGS="-s '$PROXYDIR/proxy.py' -p $PORT"

Check warning on line 7 in tests/utils/proxy/start.sh

View workflow job for this annotation

GitHub Actions / ShellCheck

Quotes/backslashes will be treated literally. Use an array.
if [[ ! -z "$AUTH" ]]; then
if [[ -n "$AUTH" ]]; then
ARGS="$ARGS --proxyauth $AUTH"
fi
PIDFILE="$PROXYDIR/proxy-$PORT.pid"
Expand Down

0 comments on commit c62b4ca

Please sign in to comment.