File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,15 @@ PORT=${PORT:-9000}
5
5
6
6
PROXYBIN=${PROXYBIN:- " $( which mitmdump) " }
7
7
ARGS=" -s '$PROXYDIR /proxy.py' -p $PORT "
8
- if [[ ! -z " $AUTH " ]]; then
8
+ if [[ -n " $AUTH " ]]; then
9
9
ARGS=" $ARGS --proxyauth $AUTH "
10
10
fi
11
11
PIDFILE=" $PROXYDIR /proxy-$PORT .pid"
12
12
13
13
set -x
14
14
15
- start-stop-daemon --verbose --start --background --pidfile $PIDFILE --make-pidfile --exec $PROXYBIN -- $ARGS
15
+ start-stop-daemon --verbose --start --background --pidfile " $PIDFILE " --make-pidfile --exec " $PROXYBIN " -- $ARGS
16
16
17
- ps -p $( cat $PIDFILE ) u
17
+ ps -p " $( cat " $PIDFILE " ) " u
18
18
sleep 2
19
- ps -p $( cat $PIDFILE ) u
19
+ ps -p " $( cat " $PIDFILE " ) " u
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- PROXYDIR=" $PWD /$( dirname $0 ) "
3
+ PROXYDIR=" $PWD /$( dirname " $0 " ) "
4
4
PORT=${PORT:- 9000}
5
5
6
6
PIDFILE=" $PROXYDIR /proxy-$PORT .pid"
7
7
8
8
set -x
9
9
10
- start-stop-daemon --verbose --stop --pidfile $PIDFILE --remove-pidfile
10
+ start-stop-daemon --verbose --stop --pidfile " $PIDFILE " --remove-pidfile
You can’t perform that action at this time.
0 commit comments