aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-22 09:59:45 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-22 09:59:45 +0000
commitdfd34028e066e89992c20c870cf85b6ffce9e5fa (patch)
treef119d15a235c9083c3aa1564cd48223340570b9b
parent295a4a25a583d5a65802dfdb4936a985ec12a678 (diff)
downloadrgoncalves.se-dfd34028e066e89992c20c870cf85b6ffce9e5fa.tar.gz
rssg: sha256sum outputs garbage at EOL
-rwxr-xr-xbin/rssg2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/rssg b/bin/rssg
index f153b0e..d42ff14 100755
--- a/bin/rssg
+++ b/bin/rssg
@@ -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
remember that computers suck.