From dfd34028e066e89992c20c870cf85b6ffce9e5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 22 Dec 2021 09:59:45 +0000 Subject: rssg: sha256sum outputs garbage at EOL --- bin/rssg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3