Tim Otto
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
-
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" |
|
|
|