From 71f97adcc4773fd4f538daa2da38c7596926fa30 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Tue, 26 Mar 2024 21:22:00 +0200 Subject: Fix bugs, prepare for deployment --- vendor/bin/pandoc-rss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'vendor') diff --git a/vendor/bin/pandoc-rss b/vendor/bin/pandoc-rss index f1a1d7d..dad8232 100755 --- a/vendor/bin/pandoc-rss +++ b/vendor/bin/pandoc-rss @@ -100,11 +100,14 @@ get_date () shift if date=$(get_metadata_value date "$input_file") then - if [ -f /opt/homebrew/bin/gdate ]; then + if [ -f /opt/homebrew/bin/gdate ]; then date_cmd=/opt/homebrew/bin/gdate - else + elif [ -f /usr/bin/date ]; then date_cmd=/usr/bin/date + else + date_cmd=/bin/date fi + $date_cmd --utc --date "$date" +'%a, %d %b %Y %T +0000' fi } -- cgit v1.3