Skip to content

Commit d6c1fe0

Browse files
committed
Unified macOS bundle: Use regex matching to work around MainMenu.nib
1 parent ea088d9 commit d6c1fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers_bundles.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,14 @@ create_unified_vm_macOS() {
216216
# echo ln -s `readlink "$A/$f"` "$O/$f"
217217
elif [ ! -f "$A/$f" ]; then
218218
echo "$A/$f does not exist; how come?"
219-
elif [ "$f" != *"MainMenu.nib" ] && [ ! -f "$B/$f" ]; then
219+
elif [[ ! "$f" =~ ^.*MainMenu.nib$ ]] && [ ! -f "$B/$f" ]; then
220220
echo "$B/$f does not exist; how come?"
221221
else
222222
case `file -b "$A/$f"` in
223223
Mach-O*)
224224
lipo -create -output "$O/$f" "$A/$f" "$B/$f";;
225225
*)
226-
if [ "$f" == *"MainMenu.nib" ] || [ cmp -s "$A/$f" "$B/$f" ]; then
226+
if [[ "$f" =~ ^.*MainMenu.nib$ ]] || [ cmp -s "$A/$f" "$B/$f" ]; then
227227
cp "$A/$f" "$O/$f"
228228
else
229229
echo "EXCLUDING $f because it differs"

0 commit comments

Comments
 (0)