diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-22 09:59:45 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-22 09:59:45 +0000 |
commit | dfd34028e066e89992c20c870cf85b6ffce9e5fa (patch) | |
tree | f119d15a235c9083c3aa1564cd48223340570b9b | |
parent | 295a4a25a583d5a65802dfdb4936a985ec12a678 (diff) | |
download | rgoncalves.se-dfd34028e066e89992c20c870cf85b6ffce9e5fa.tar.gz |
rssg: sha256sum outputs garbage at EOL
-rwxr-xr-x | bin/rssg | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ for file in $(__list_files_date "${rss_dir}"); do date=$(__get_value_date_publication "${file}") link="${website_link}/$(__get_final_filename ${file})" if [ "${uname}" = "Linux" ]; then - guid="$(echo ${link} | sha256sum)" + guid="$(echo ${link} | sha256sum | cut -d ' ' -f 1)" else guid="$(echo ${link} | sha256)" fi |