Skip to content

Commit

Permalink
Merge pull request #29 from daresaydigital/master
Browse files Browse the repository at this point in the history
Create unzip folder before extracting.
  • Loading branch information
jeiting authored Nov 7, 2018
2 parents bf2be3e + bfdb8fc commit 25507d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/download-purchases-framework.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ if [ -d ./Purchases.framework ]; then
fi

curl -sSL $URL > temp.zip
# In some cases the temp folder can not be created by unzip, https://github.com/RevenueCat/react-native-purchases/issues/26
mkdir -p temp
unzip -o temp.zip -d temp
mv temp/Purchases.framework ./Purchases.framework
rm -r temp
Expand All @@ -34,4 +36,4 @@ if ! [ -d ./Purchases.framework ]; then
echo "Purchases.framework not found. Please reinstall react-native-purchases"; exit 1;
fi;

echo "$VERSION" > .framework_version
echo "$VERSION" > .framework_version

0 comments on commit 25507d8

Please sign in to comment.