Use case insensitive awk/sed

Closes #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
1 changed files with 2 additions and 2 deletions

4
abra
View File

@ -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")