Skip to content

Commit daf16b5

Browse files
committed
fix(ci): broken pipe error in build-release.sh from echo piped to grep -m 1
1 parent a2b9d26 commit daf16b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/build-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ bundle_dylibs() {
264264
# (e.g. strchrnul) that don't exist on earlier OS versions → launch crash.
265265
echo " Verifying deployment target compatibility..."
266266
local deploy_target
267-
deploy_target=$(echo "$build_settings" | grep -m 1 '^\s*MACOSX_DEPLOYMENT_TARGET = ' | awk '{print $3}')
267+
deploy_target=$(grep -m 1 '^\s*MACOSX_DEPLOYMENT_TARGET = ' <<< "$build_settings" | awk '{print $3}')
268268
if [ -n "$deploy_target" ]; then
269269
local deploy_major
270270
deploy_major=$(echo "$deploy_target" | cut -d. -f1)
@@ -373,7 +373,7 @@ build_for_arch() {
373373
echo "✅ Build succeeded for $arch"
374374

375375
# Get binary path with validation
376-
DERIVED_DATA=$(echo "$build_settings" | grep -m 1 "BUILD_DIR" | awk '{print $3}')
376+
DERIVED_DATA=$(grep -m 1 "BUILD_DIR" <<< "$build_settings" | awk '{print $3}')
377377

378378
if [ -z "$DERIVED_DATA" ]; then
379379
echo "❌ FATAL: Failed to determine build directory from xcodebuild settings"

0 commit comments

Comments
 (0)