File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,24 @@ if [[ $# -lt 1 ]]; then
55 exit 1
66fi
77
8+ rc=0
9+
810# --color=never because magit git output log doesn't support it
911die_occurrences=" $(
1012 grep -H --color=never --line-number -P ' \bdie\s*[\(;]' " $@ " | grep -v -P ' UnitySite::die'
1113) " || true
1214if [ -n " $die_occurrences " ]; then
1315 echo " die is not allowed! use UnitySite::die() instead."
1416 echo " $die_occurrences "
15- exit 1
17+ rc= 1
1618fi
1719
1820# --color=never because magit git output log doesn't support it
1921exit_occurrences=" $( grep -H --color=never --line-number -P ' \bexit\s*[\(;]' " $@ " ) " || true
2022if [ -n " $exit_occurrences " ]; then
2123 echo " exit is not allowed! use UnitySite::die() instead."
2224 echo " $exit_occurrences "
23- exit 1
25+ rc= 1
2426fi
27+
28+ exit " $rc "
You can’t perform that action at this time.
0 commit comments