Skip to content

Commit

Permalink
Add some debug logging if tar fails
Browse files Browse the repository at this point in the history
Summary: This is to help debug the root cause of #14423

Reviewed By: javache

Differential Revision: D5254713

fbshipit-source-id: 1ca90205144b3a069d927ba6636f0ef0138b51a0
  • Loading branch information
mhorowitz authored and facebook-github-bot committed Jun 15, 2017
1 parent 4fd427e commit a555551
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/ios-install-third-party.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down

0 comments on commit a555551

Please sign in to comment.