diff --git a/.config/bash/module/checksum.sh b/.config/bash/module/checksum.sh index 8be9bfb..75fff5b 100644 --- a/.config/bash/module/checksum.sh +++ b/.config/bash/module/checksum.sh @@ -79,8 +79,8 @@ function checksum_check() { [[ -f "${hashfile}" ]] || { ((skipped++)); continue; } # Calculate hash. - local stored=$(cat "${hashfile}" | cut -d\ -f1) - local actual=$(pv "${target}" | sha1sum | cut -d\ -f1) + local stored=$(cat "${hashfile}" | cut -d\ -f1) + local actual=$(pv "${target}" | sha1sum | cut -d\ -f1) if [[ "${stored}" != "${actual}" ]]; then echo -e "${color_bred}${status}: Failed.${color_default}" diff --git a/.config/bash/module/name.sh b/.config/bash/module/name.sh index 8f2226a..99f95a0 100644 --- a/.config/bash/module/name.sh +++ b/.config/bash/module/name.sh @@ -93,7 +93,7 @@ function name_hash() { fi # hash the new name. - local hash=$(pv "${target}" | sha1sum | cut -d\ -f1) + local hash=$(pv "${target}" | sha1sum | cut -d\ -f1) new_name="${hash,,}${extension,,}" # prepare status. @@ -152,7 +152,7 @@ function name_hash_check() { # extract hashes. local stored="${target%%.*}" - local actual=$(pv "${target}" | sha1sum | cut -d\ -f1) + local actual=$(pv "${target}" | sha1sum | cut -d\ -f1) # compare hashes. if [[ "${stored}" != "${actual}" ]]; then