Improve docstring

This commit is contained in:
ItsDrike 2022-03-16 10:45:40 +01:00
parent c676e648c4
commit c37a49d24d
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -243,7 +243,7 @@ if [ "$total" -gt 0 ]; then
# Create hash from the name and description and use it to construct
# a path to a temporary file
# To keep this POSIX compliant, we can't use <<< to feed a string to the
# sum function, so we're using a temporary file
# sum function, so we're using another temporary file which is then removed
temp_file="$(mktemp)"
printf "$name$description" > "$temp_file"
hashsum="$(sum < "$temp_file" | cut -f 1 -d ' ')"