Skip to content

Commit

Permalink
Receive PROJECT_ROOT_OVERRIDE as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
nossbigg committed May 20, 2019
1 parent e608c4c commit f8483ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion RNTester/RNTester.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "export NODE_BINARY=node\n$SRCROOT/../scripts/react-native-xcode.sh RNTester/js/RNTesterApp.ios.js $SRCROOT/..\n";
shellScript = "export NODE_BINARY=node\nPROJECT_ROOT_OVERRIDE=$SRCROOT/.. $SRCROOT/../scripts/react-native-xcode.sh RNTester/js/RNTesterApp.ios.js\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down
1 change: 0 additions & 1 deletion scripts/react-native-xcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ REACT_NATIVE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# in node_modules.
PROJECT_ROOT=${PROJECT_ROOT:-"$REACT_NATIVE_DIR/../.."}

PROJECT_ROOT_OVERRIDE=$2
if [ "$PROJECT_ROOT_OVERRIDE" != "" ]; then
PROJECT_ROOT=$PROJECT_ROOT_OVERRIDE
fi
Expand Down

0 comments on commit f8483ee

Please sign in to comment.