From 40c90ada3954bac2fa3677d2d8fe087067f28e59 Mon Sep 17 00:00:00 2001 From: Hur Ali Date: Tue, 9 Jun 2026 02:50:30 -0700 Subject: [PATCH] fix: allow escape interpretation for shells (#57114) Summary: This makes the shell to use escape interpretation by setting `echo -e "..."`. For zsh shell, this often works out of the box. For other shells like bash, we may need to set it explicitly. ## Changelog: [INTERNAL] [FIXED] - allow escape interpretation for shells Pull Request resolved: https://github.com/facebook/react-native/pull/57114 Test Plan: - CI Passes - Verified Locally on template app https://github.com/user-attachments/assets/4c8c6bf7-1cf2-4bd8-b094-651c44578ae0 Reviewed By: cipolleschi Differential Revision: D107904889 Pulled By: cortinico fbshipit-source-id: 2222f589ecc149a82d5067e0a2198b9c1a17ffcb --- .github/workflows/e2e-android-templateapp.yml | 2 +- scripts/release-testing/test-release-local.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-android-templateapp.yml b/.github/workflows/e2e-android-templateapp.yml index 1e4283d6369..d3aa693c511 100644 --- a/.github/workflows/e2e-android-templateapp.yml +++ b/.github/workflows/e2e-android-templateapp.yml @@ -66,7 +66,7 @@ jobs: echo "Feed maven local to gradle.properties" cd /tmp/RNTestProject - echo "\nreact.internal.mavenLocalRepo=$MAVEN_LOCAL" >> android/gradle.properties + echo -e "\nreact.internal.mavenLocalRepo=$MAVEN_LOCAL" >> android/gradle.properties # Build cd android diff --git a/scripts/release-testing/test-release-local.js b/scripts/release-testing/test-release-local.js index d8165c6523e..31a0733af47 100644 --- a/scripts/release-testing/test-release-local.js +++ b/scripts/release-testing/test-release-local.js @@ -292,7 +292,7 @@ async function testRNTestProject( // need to do this here so that Android will be properly setup either way exec( - `echo "\nreact.internal.mavenLocalRepo=${mavenLocalPath}" >> android/gradle.properties`, + `echo -e "\nreact.internal.mavenLocalRepo=${mavenLocalPath}" >> android/gradle.properties`, ); // Only build the simulator architecture. CI is however generating only that one.