diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2024-03-26 21:22:00 +0200 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2024-03-26 21:25:10 +0200 |
| commit | 71f97adcc4773fd4f538daa2da38c7596926fa30 (patch) | |
| tree | 0ee1a3dc0c737cc04446f6a0814875e034bf33e2 /vendor | |
| parent | 1dcfacfa22cc50a95ab057023ed58dcb0608c05e (diff) | |
Fix bugs, prepare for deployment
Diffstat (limited to 'vendor')
| -rwxr-xr-x | vendor/bin/pandoc-rss | 7 |
1 files changed, 5 insertions, 2 deletions
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 } |
