From 92f49d56dd1bbc5a1afef04af263a0b22d151da3 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 4 Jul 2021 22:41:48 +0200 Subject: [PATCH] Use case insensitive awk/sed Closes https://git.autonomic.zone/coop-cloud/abra/issues/170. --- abra | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/abra b/abra index 24a8063..861bb29 100755 --- a/abra +++ b/abra @@ -508,8 +508,8 @@ require_apps_json() { if [ -f "$ABRA_APPS_JSON" ]; then modified=$(curl --silent --head "$ABRA_APPS_URL" | \ - awk '/^Last-Modified/{print $0}' | \ - sed 's/^Last-Modified: //') + awk '/^last-modified/{print tolower($0)}' | \ + sed 's/^last-modified: //I') remote_ctime=$(date --date="$modified" +%s) local_ctime=$(stat -c %Z "$ABRA_APPS_JSON")