diff --git a/scripts/react-native-xcode.sh b/scripts/react-native-xcode.sh index 16c95951309..34b8d5eed02 100755 --- a/scripts/react-native-xcode.sh +++ b/scripts/react-native-xcode.sh @@ -57,7 +57,7 @@ REACT_NATIVE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" # in node_modules. PROJECT_ROOT=${PROJECT_ROOT:-"$REACT_NATIVE_DIR/../.."} -cd $PROJECT_ROOT +cd "$PROJECT_ROOT" || exit # Define NVM_DIR and source the nvm.sh setup script [ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"