Skip to content

Commit

Permalink
fix: use "cd -" after REACT_NATIVE_DIR is set
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Sep 15, 2018
1 parent 27c825e commit 0af120a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/react-native-xcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ esac

# Path to react-native folder inside node_modules
REACT_NATIVE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"

# Xcode project file for React Native apps is located in ios/ subfolder
cd "${REACT_NATIVE_DIR}"/../..
cd -

# Define NVM_DIR and source the nvm.sh setup script
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
Expand Down

0 comments on commit 0af120a

Please sign in to comment.