We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e63bb54 commit 15cf874Copy full SHA for 15cf874
tests/utils/proxy/start.sh
@@ -4,15 +4,16 @@ PROXYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4
PORT=${PORT:-9000}
5
6
PROXYBIN=${PROXYBIN:-"$(which mitmdump)"}
7
-ARGS="-s '$PROXYDIR/proxy.py' -p $PORT"
+
8
+ARGS=(-s "$PROXYDIR/proxy.py" -p "$PORT")
9
if [[ -n "$AUTH" ]]; then
- ARGS="$ARGS --proxyauth $AUTH"
10
+ ARGS+=("--proxyauth" "$AUTH")
11
fi
12
PIDFILE="$PROXYDIR/proxy-$PORT.pid"
13
14
set -x
15
-start-stop-daemon --verbose --start --background --pidfile "$PIDFILE" --make-pidfile --exec "$PROXYBIN" -- $ARGS
16
+start-stop-daemon --verbose --start --background --pidfile "$PIDFILE" --make-pidfile --exec "$PROXYBIN" -- "${ARGS[@]}"
17
18
ps -p "$(cat "$PIDFILE")" u
19
sleep 2
0 commit comments