Skip to content

Commit db7e3a1

Browse files
author
Adam Soos
committed
WS-3314: fix example runner
1 parent 44f9b48 commit db7e3a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/run_all.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ if [ $# -eq 0 ]; then
44
echo "Usage: $0 API_KEY [ALT_URL]" 1>&2
55
exit 1
66
fi
7-
OPTS=""
8-
if [ -n "$2" ]; then
9-
OPTS="-u $2"
10-
fi
117

128
for f in *.py
139
do
14-
python $f --key $1 "$OPTS"
10+
if [ -n "$2" ]; then
11+
python $f --key $1 --url $2
12+
else
13+
python $f --key $1
14+
fi
1515
done

0 commit comments

Comments
 (0)