diff options
Diffstat (limited to 'bin/rssg')
-rwxr-xr-x | bin/rssg | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -5,7 +5,6 @@ set -e current_date=$(date +"%a, %d %b %Y %H:%M:%S %z") -uname=$(uname) cat <<-EOF > "${rss_out_file}" <rss version="2.0"> @@ -28,13 +27,7 @@ for file in $(__list_files_date "${rss_dir}"); do title=$(__get_value_title "${file}") date=$(__get_value_date_publication "${file}") link="${website_link}/$(__get_final_filename "${file}")" - description=$(__generate_rss_body "${file}") - if [ "${uname}" = "Linux" ]; then - guid="$(echo "${link}" | sha256sum | cut -d ' ' -f 1)" - else - guid="$(echo "${link}" | sha256)" - fi - + guid="$(echo "${link}" | "${__sha256}" | cut -d ' ' -f 1)" cat <<-EOF >> "${rss_out_file}" <item> <title>${title}</title> |