bash : fix wrong tabs.

This commit is contained in:
Dmitry Voronin 2023-12-07 22:37:08 +03:00
parent 74a9a94e43
commit 70c54331b6
2 changed files with 4 additions and 4 deletions

View file

@ -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}"

View file

@ -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