From 6bbd5936c4f19a7c1cc58bca9027efdcd86e7874 Mon Sep 17 00:00:00 2001 From: takkanm Date: Wed, 19 Sep 2018 12:29:20 +0900 Subject: [PATCH] allow run script in node_modules/react-native/scripts SCRIPTDIR is "." if run node_modules/react/scripts. So, that's failed run ios-configure-glog.sh. ``` ios-install-third-party.sh: line 56: ./ios-configure-glog.sh: No such File or directory ``` --- scripts/ios-install-third-party.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/ios-install-third-party.sh b/scripts/ios-install-third-party.sh index a80f2db1253736..d1ce39551c879c 100755 --- a/scripts/ios-install-third-party.sh +++ b/scripts/ios-install-third-party.sh @@ -64,6 +64,9 @@ function fetch_and_unpack () { mkdir -p third-party SCRIPTDIR=$(dirname "$0") +if [ "$SCRIPTDIR" = "." ]; then + SCRIPTDIR=$(pwd) +fi fetch_and_unpack glog-0.3.5.tar.gz https://github.com/google/glog/archive/v0.3.5.tar.gz 61067502c5f9769d111ea1ee3f74e6ddf0a5f9cc "\"$SCRIPTDIR/ios-configure-glog.sh\"" fetch_and_unpack double-conversion-1.1.6.tar.gz https://github.com/google/double-conversion/archive/v1.1.6.tar.gz 1c7d88afde3aaeb97bb652776c627b49e132e8e0