From c4a831c8becd493a47abdc822e8cba98d4ad2f45 Mon Sep 17 00:00:00 2001 From: Chris Simons Date: Tue, 28 Apr 2020 22:28:50 -0700 Subject: [PATCH] build_installer.sh: better to check if $B_COCOA is not a file than if it is an empty string --- dist/macos/bundle/build_installer.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/macos/bundle/build_installer.sh.in b/dist/macos/bundle/build_installer.sh.in index f2b5a89b..564d91fa 100755 --- a/dist/macos/bundle/build_installer.sh.in +++ b/dist/macos/bundle/build_installer.sh.in @@ -37,7 +37,7 @@ cp @CMAKE_RUNTIME_OUTPUT_DIRECTORY@/* . || exit 1 B_COCOA=$(DYLD_PRINT_LIBRARIES=1 \ @CMAKE_RUNTIME_OUTPUT_DIRECTORY@/barrier 2>&1 \ | grep --only-matching --max-count 1 '/.*libqcocoa.dylib$') -if [ "x$B_COCOA" = "x" ]; then +if [ ! -f "$B_COCOA" ]; then echo "Could not find cocoa platform plugin" exit 1 fi