Skip to content

Commit c3a02b6

Browse files
committed
Fix for empty glob
1 parent b9a444b commit c3a02b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/macos/make-universal.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@ touch $INSTALLDIR/.keep
1515
lipo -create -output $INSTALLDIR/$BINDIR/$BINNAME $INSTALLDIR-x86_64/$BINDIR/$BINNAME $INSTALLDIR-arm64/$BINDIR/$BINNAME
1616

1717
for f in $INSTALLDIR-arm64/$BINDIR/*.dylib; do
18-
lipo -create -output $INSTALLDIR/$BINDIR/$(basename $f) $INSTALLDIR-x86_64/$BINDIR/$(basename $f) $INSTALLDIR-arm64/$BINDIR/$(basename $f)
18+
if [ -f $INSTALLDIR-arm64/$BINDIR/$(basename $f) ]; then
19+
lipo -create -output $INSTALLDIR/$BINDIR/$(basename $f) $INSTALLDIR-x86_64/$BINDIR/$(basename $f) $INSTALLDIR-arm64/$BINDIR/$(basename $f)
20+
fi
1921
done

0 commit comments

Comments
 (0)