Use case insensitive awk/sed

Closes coop-cloud/abra#170.
This commit is contained in:
decentral1se 2021-07-04 22:41:48 +02:00
parent d9ff48b55b
commit 92f49d56dd
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

4
abra
View File

@ -508,8 +508,8 @@ require_apps_json() {
if [ -f "$ABRA_APPS_JSON" ]; then if [ -f "$ABRA_APPS_JSON" ]; then
modified=$(curl --silent --head "$ABRA_APPS_URL" | \ modified=$(curl --silent --head "$ABRA_APPS_URL" | \
awk '/^Last-Modified/{print $0}' | \ awk '/^last-modified/{print tolower($0)}' | \
sed 's/^Last-Modified: //') sed 's/^last-modified: //I')
remote_ctime=$(date --date="$modified" +%s) remote_ctime=$(date --date="$modified" +%s)
local_ctime=$(stat -c %Z "$ABRA_APPS_JSON") local_ctime=$(stat -c %Z "$ABRA_APPS_JSON")