Browse Source

Merge pull request #1151 from MortalKastor/develop

Fix flow-typed caching
master
Meriadec Pillet 7 years ago
committed by GitHub
parent
commit
82ea203e1f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      scripts/postinstall.sh

2
scripts/postinstall.sh

@ -11,7 +11,7 @@ function MAIN {
} }
function INSTALL_FLOW_TYPED { function INSTALL_FLOW_TYPED {
LATEST_FLOW_TYPED_COMMIT_HASH=$(curl --silent --header "Accept: application/vnd.github.VERSION.sha" https://api.github.com/repos/flowtype/flow-typed/commits/master) LATEST_FLOW_TYPED_COMMIT_HASH=$(curl --silent --header "Accept: application/vnd.github.VERSION.sha" --location https://api.github.com/repos/flowtype/flow-typed/commits/master)
CURRENT_FLOW_TYPED_HASH=$(GET_HASH 'flow-typed') CURRENT_FLOW_TYPED_HASH=$(GET_HASH 'flow-typed')
if [ "$LATEST_FLOW_TYPED_COMMIT_HASH" == "$CURRENT_FLOW_TYPED_HASH" ]; then if [ "$LATEST_FLOW_TYPED_COMMIT_HASH" == "$CURRENT_FLOW_TYPED_HASH" ]; then
echo "> Flow-typed definitions are up to date. Skipping" echo "> Flow-typed definitions are up to date. Skipping"

Loading…
Cancel
Save