Skip to content

Commit 6fb05ad

Browse files
committed
Surpress make failure if the old build script didn't support AMO
Somehow make was obtaining the return value from this cp command and erroring on it.
1 parent 59b2d8d commit 6fb05ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

makexpi.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ if [ -n "$1" ] && [ "$2" != "--no-recurse" ] && [ "$1" != "--fast" ] ; then
4444
cd ..
4545
XPI_NAME="$APP_NAME-$1"
4646
cp $SUBDIR/pkg/$XPI_NAME.xpi pkg/
47-
cp $SUBDIR/pkg/$XPI_NAME-amo.xpi pkg/
47+
if ! cp $SUBDIR/pkg/$XPI_NAME-amo.xpi pkg/ 2> /dev/null ; then
48+
echo Old version does not support AMO
49+
fi
4850
rm -rf $SUBDIR
4951
exit 0
5052
fi

0 commit comments

Comments
 (0)