From a555551aaf1de1aff2a58f7aa09e970bcd003f7f Mon Sep 17 00:00:00 2001 From: Marc Horowitz Date: Thu, 15 Jun 2017 13:03:23 -0700 Subject: [PATCH] Add some debug logging if tar fails Summary: This is to help debug the root cause of https://github.com/facebook/react-native/issues/14423 Reviewed By: javache Differential Revision: D5254713 fbshipit-source-id: 1ca90205144b3a069d927ba6636f0ef0138b51a0 --- scripts/ios-install-third-party.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/scripts/ios-install-third-party.sh b/scripts/ios-install-third-party.sh index 5813b19b860..2aabd7fe8df 100755 --- a/scripts/ios-install-third-party.sh +++ b/scripts/ios-install-third-party.sh @@ -1,10 +1,5 @@ #!/bin/bash -#boostdir="`node ./node_modules/boost-lib/bin/boost-lib download -V 1.63`" -#cd "$boostdir" -#./bootstrap.sh -#./b2 headers - set -e cachedir="$HOME/.rncache" @@ -23,8 +18,12 @@ function fetch_and_unpack () { if [ ! -d "third-party/$dir" ]; then (cd third-party; echo Unpacking "$cachedir/$file"... - tar zxf "$cachedir/$file" - + if ! tar zxf "$cachedir/$file"; then + echo "Unpacking '$cachedir/$file' failed. Debug info:" 2>&1 + ls -l "$cachedir/$file" 2>&1 + shasum ~/.rncache/boost_1_63_0.tar.gz 2>&1 + exit 1 + fi cd "$dir" eval "${cmd:-true}") fi