mirror of
https://github.com/markusressel/zfs-inplace-rebalancing
synced 2026-02-05 05:24:07 +00:00
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:
parent
61bf0a0a40
commit
0be189bbe8
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user