From 16f2cea642254d3a4c3381b3ed3a37a1a58f8f69 Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Sat, 16 Jan 2021 14:28:50 +0900 Subject: [PATCH] Cater to changed stat output in alpine 3.13.0 It now also appends a timezone that needs to be removed to create a datetime format that the busybox date command can handle. --- snapshots/create-index.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snapshots/create-index.sh b/snapshots/create-index.sh index f9eef457..40ae4547 100755 --- a/snapshots/create-index.sh +++ b/snapshots/create-index.sh @@ -7,10 +7,10 @@ FE_SRC_ARCHIVE=$(ls sane-frontends-*-g*.tar.gz) BE_GIT_ARCHIVE=$(ls sane-backends-git*.tar.gz) FE_GIT_ARCHIVE=$(ls sane-frontends-git*.tar.gz) -BE_SRC_DATE=$(date "+%F %T" -d "$(stat -c %y $BE_SRC_ARCHIVE | sed 's/\.0*$//')") -FE_SRC_DATE=$(date "+%F %T" -d "$(stat -c %y $FE_SRC_ARCHIVE | sed 's/\.0*$//')") -BE_GIT_DATE=$(date "+%F %T" -d "$(stat -c %y $BE_GIT_ARCHIVE | sed 's/\.0*$//')") -FE_GIT_DATE=$(date "+%F %T" -d "$(stat -c %y $FE_GIT_ARCHIVE | sed 's/\.0*$//')") +BE_SRC_DATE=$(date "+%F %T" -d "$(stat -c %y $BE_SRC_ARCHIVE | sed 's/\..*$//')") +FE_SRC_DATE=$(date "+%F %T" -d "$(stat -c %y $FE_SRC_ARCHIVE | sed 's/\..*$//')") +BE_GIT_DATE=$(date "+%F %T" -d "$(stat -c %y $BE_GIT_ARCHIVE | sed 's/\..*$//')") +FE_GIT_DATE=$(date "+%F %T" -d "$(stat -c %y $FE_GIT_ARCHIVE | sed 's/\..*$//')") BE_SRC_SIZE=$(stat -c %s $BE_SRC_ARCHIVE) FE_SRC_SIZE=$(stat -c %s $FE_SRC_ARCHIVE)