Removing tmp_extension is not needed

Removing tmp_extension is not needed because awk already removes everything except the checksum value
This commit is contained in:
Adi 2025-01-05 03:32:45 +00:00 committed by GitHub
parent 61bf0a0a40
commit 0be189bbe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,8 +169,6 @@ function rebalance() {
copy_checksum="$(stat -f "%Sp %Su %Sg %z %m" "${tmp_file_path}")"
# file content
copy_checksum="${copy_checksum} $(cksum "${tmp_file_path}" | awk '{ print $1 }')"
# remove the temporary extension
copy_checksum=${copy_checksum%"${tmp_extension}"}
else
echo "Unsupported OS type: $OSTYPE"
exit 1