Browse Source
Merge pull request #1151 from MortalKastor/develop
Fix flow-typed caching
master
Meriadec Pillet
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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" |
|
|