Setting current working directory for dev server.

Summary:
* This allows `react-native` to work for users on fedora.
* `react-native run-android` was failing because the launch packager script was unable to find packager.sh (see `source` in `man bash`).
* This change sets cwd for the dev server when run with `run-android`.
Closes https://github.com/facebook/react-native/pull/7316

Differential Revision: D3255866

fb-gh-sync-id: 88f6b18f7c61636ce8fecef77f7f4e60b1d9a637
fbshipit-source-id: 88f6b18f7c61636ce8fecef77f7f4e60b1d9a637
This commit is contained in:
jsdevel 2016-05-04 02:44:42 -07:00 committed by Facebook Github Bot 0
parent daa426c46a
commit 4695f84448
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ clear
THIS_DIR=$(dirname "$0")
pushd "$THIS_DIR"
source packager.sh
source ./packager.sh
popd
echo "Process terminated. Press <enter> to close the window"