From 9a0b06de2387d3cc966c75e4bc6d79e25c6f1543 Mon Sep 17 00:00:00 2001 From: Tim Otto Date: Sat, 9 Jun 2018 15:58:48 +0200 Subject: [PATCH] feat: follow redirects when checking URL --- assets/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/common.sh b/assets/common.sh index 503b1ce..297f263 100755 --- a/assets/common.sh +++ b/assets/common.sh @@ -4,7 +4,7 @@ set -e # e.g. curl -R -I $1 check_version() { # retrieves HTTP header of file URL response - local httpHeader=$(curl -R -I $1 2>&1 | grep 'Last-Modified:') + local httpHeader=$(curl -LR -I $1 2>&1 | grep 'Last-Modified:') # Checks if field "Last-Modified" exists in HTTP header and transform it into timestamp string # if that field is not present, return current timestamp local dateVersionFormat="%Y%m%d%H%S"