build_installer.sh: better to check if $B_COCOA is not a file than if it is an empty string

This commit is contained in:
Chris Simons 2020-04-28 22:28:50 -07:00
parent 4582cdc104
commit c4a831c8be
1 changed files with 1 additions and 1 deletions

View File

@ -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