From c902b1e87f1f6c231b40fa393f38c2cde30e7df9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Sun, 14 Apr 2024 00:25:02 +0200 Subject: [PATCH] alpine has a differente date command --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4876d4c..bc42a80 100755 --- a/build.sh +++ b/build.sh @@ -10,7 +10,7 @@ buildDate="$(date '+%d %b %Y')" # $1=file $2=add to index convert_md_to_html() { fileName=$(basename "${1%.*}") - postDate=$(stat -c %y "$1" | date '+%d %b %Y' -f -) + postDate=$(date '+%d %b %Y' -d "$(stat -c %y "$1" | awk '{print $1}')") bodyClass="page" if [ $2 -eq 1 ]; then