Skip to content

Commit

Permalink
THIS_DIR in haul-integrate.sh returns relative path instead of absolu…
Browse files Browse the repository at this point in the history
…te (#250)
  • Loading branch information
bsnelder authored and satya164 committed Oct 11, 2017
1 parent fe555b7 commit 9d39068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/haul-integrate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

THIS_DIR=$(dirname $0)
THIS_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"

SCRIPT_SRC="${THIS_DIR}/../../../react-native/packager"

Expand All @@ -15,5 +15,5 @@ SRC="$(cd "${SCRIPT_SRC}" && pwd)"
sed -i -e 's|$REACT_NATIVE_DIR/local-cli/cli.js|./node_modules/.bin/haul|' ${SRC}/react-native-xcode.sh

# Replace `react-native start` in `packager.sh`
PACKAGER_CONTENT="cd \"$THIS_DIR/../../../\" && node \"./node_modules/.bin/haul\" start --platform ios \"\$@\""
PACKAGER_CONTENT="cd \"$THIS_DIR/../../../../\" && node \"./node_modules/.bin/haul\" start --platform ios \"\$@\""
echo "$PACKAGER_CONTENT" > ${SRC}/packager.sh

0 comments on commit 9d39068

Please sign in to comment.