Skip to content

Commit 54a7ff9

Browse files
committed
QPR-11822 bugfix example shellscript
1 parent 24bad05 commit 54a7ff9

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

OREAnalytics-SWIG/Python/Examples/runExamples.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/bin/sh
2-
status = 0
2+
status=0
3+
return_code=0
34
for file in *.py; do
45
if [ -f "$file" ]; then
56
echo RUN $file
6-
python3 "$file" || status = 1
7-
return_code = $?
8-
if [$return_code -gt $status]; then
9-
status = $return_code
7+
python3 "$file" || status=1
8+
return_code=$?
9+
if [ $return_code -gt $status ]; then
10+
status=$return_code
1011
fi
1112
fi
1213
done

0 commit comments

Comments
 (0)