From 22fe08f77af0903d753c1719c635ce4c2a2bdc6d Mon Sep 17 00:00:00 2001 From: Mark Kim Date: Thu, 22 Jun 2023 22:32:33 -0400 Subject: [PATCH] fix grep warning in macOS build script Newer version of grep throws a warning "grep: warning: stray \ before /" during macOS app bundle build. Fixed. --- macos/build-app.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macos/build-app.sh b/macos/build-app.sh index a32c5d58f..2917911ae 100755 --- a/macos/build-app.sh +++ b/macos/build-app.sh @@ -62,7 +62,7 @@ for i in "$BINARY" $LIBS $LIBDIR/*; do # # https://stackoverflow.com/questions/20206985/xcode-linking-against-applicationservices-framework-with-sdk-10-9-causes-10-7 # - if [ `otool -L "$i" | grep -c '^[[:space:]]*\/System\/Library\/Frameworks\/CoreGraphics\.framework\/Versions\/A\/CoreGraphics'` -gt 0 ]; then + if [ `otool -L "$i" | grep -c '^[[:space:]]*[/]System[/]Library[/]Frameworks[/]CoreGraphics\.framework[/]Versions[/]A[/]CoreGraphics'` -gt 0 ]; then defaultlib="/System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics" compatlib="/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics" install_name_tool -change "$defaultlib" "$compatlib" "$i"