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
5
5
exit 1
6
6
fi
7
7
8
+ rc=0
9
+
8
10
# --color=never because magit git output log doesn't support it
9
11
die_occurrences=" $(
10
12
grep -H --color=never --line-number -P ' \bdie\s*[\(;]' " $@ " | grep -v -P ' UnitySite::die'
11
13
) " || true
12
14
if [ -n " $die_occurrences " ]; then
13
15
echo " die is not allowed! use UnitySite::die() instead."
14
16
echo " $die_occurrences "
15
- exit 1
17
+ rc= 1
16
18
fi
17
19
18
20
# --color=never because magit git output log doesn't support it
19
21
exit_occurrences=" $( grep -H --color=never --line-number -P ' \bexit\s*[\(;]' " $@ " ) " || true
20
22
if [ -n " $exit_occurrences " ]; then
21
23
echo " exit is not allowed! use UnitySite::die() instead."
22
24
echo " $exit_occurrences "
23
- exit 1
25
+ rc= 1
24
26
fi
27
+
28
+ exit " $rc "
You can’t perform that action at this time.
0 commit comments