From 70c54331b6c75184eaaa32dc79f535b2acff27f6 Mon Sep 17 00:00:00 2001 From: home Date: Thu, 7 Dec 2023 22:37:08 +0300 Subject: [PATCH] bash : fix wrong tabs. --- .config/bash/module/checksum.sh | 4 ++-- .config/bash/module/name.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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