From 40a5d31bc6398898669e707e508cb2ea8ab2a264 Mon Sep 17 00:00:00 2001 From: Thibaut Boustany Date: Mon, 16 Jul 2018 14:10:09 +0200 Subject: [PATCH] Fix getting latest flow-typed hash --- scripts/postinstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index c33cf292..eeed781a 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -11,7 +11,7 @@ function MAIN { } 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') if [ "$LATEST_FLOW_TYPED_COMMIT_HASH" == "$CURRENT_FLOW_TYPED_HASH" ]; then echo "> Flow-typed definitions are up to date. Skipping"