Skip to content

Commit

Permalink
Revert "Better error message when missing entry file (facebook#29012)"
Browse files Browse the repository at this point in the history
This reverts commit e73208e.
  • Loading branch information
janicduplessis committed Oct 31, 2020
1 parent 97a1e98 commit cd3d270
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/react-native-xcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,9 @@ if [[ "$ENTRY_FILE" ]]; then
# Use ENTRY_FILE defined by user
:
elif [[ -s "index.ios.js" ]]; then
ENTRY_FILE=${1:-index.ios.js}
else
ENTRY_FILE=${1:-index.js}
fi

if [[ $DEV != true && ! -f "$ENTRY_FILE" ]]; then
echo "error: Entry file $ENTRY_FILE does not exist. If you use another file as your entry point, pass ENTRY_FILE=myindex.js" >&2
exit 2
ENTRY_FILE=${1:-index.ios.js}
else
ENTRY_FILE=${1:-index.js}
fi

if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
Expand Down

0 comments on commit cd3d270

Please sign in to comment.