From d6c1fe042b8842b01d99b1ce56cf3b838cb3f42d Mon Sep 17 00:00:00 2001 From: Marcel Taeumel Date: Tue, 16 Jan 2024 16:44:02 +0100 Subject: [PATCH] Unified macOS bundle: Use regex matching to work around MainMenu.nib --- helpers_bundles.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers_bundles.sh b/helpers_bundles.sh index a510a4a..e21f8eb 100644 --- a/helpers_bundles.sh +++ b/helpers_bundles.sh @@ -216,14 +216,14 @@ create_unified_vm_macOS() { # echo ln -s `readlink "$A/$f"` "$O/$f" elif [ ! -f "$A/$f" ]; then echo "$A/$f does not exist; how come?" - elif [ "$f" != *"MainMenu.nib" ] && [ ! -f "$B/$f" ]; then + elif [[ ! "$f" =~ ^.*MainMenu.nib$ ]] && [ ! -f "$B/$f" ]; then echo "$B/$f does not exist; how come?" else case `file -b "$A/$f"` in Mach-O*) lipo -create -output "$O/$f" "$A/$f" "$B/$f";; *) - if [ "$f" == *"MainMenu.nib" ] || [ cmp -s "$A/$f" "$B/$f" ]; then + if [[ "$f" =~ ^.*MainMenu.nib$ ]] || [ cmp -s "$A/$f" "$B/$f" ]; then cp "$A/$f" "$O/$f" else echo "EXCLUDING $f because it differs"