Skip to content

Commit f230a8f

Browse files
committed
hooks/update: Also test makecrx.sh.
1 parent 30a973a commit f230a8f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

hooks/update

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,21 @@ echo "attempting to validate $newrev" >&2
4242

4343
# --- Test build
4444

45-
if [ -f makexpi.sh ]; then
45+
if [ -f makexpi.sh && -f makecrx.sh ]; then
4646
./makexpi.sh
47-
if [ "$?" != 0 ]; then
47+
XPIBULID=$?
48+
49+
./makecrx.sh
50+
CRXBUILD=$?
51+
52+
if [ "$XPIBULID" != 0 || "$CRXBUILD" != 0 ]; then
4853
echo "*** build failed" >&2
4954
exit 1
5055
else
5156
exit 0
5257
fi
5358
else
54-
echo "*** could not find makexpi.sh" >&2
59+
echo "*** could not find makexpi.sh or makecrx.sh." >&2
5560
exit 1
5661
fi
5762

0 commit comments

Comments
 (0)