Skip to content

Commit

Permalink
Removing tmp_extension is not needed
Browse files Browse the repository at this point in the history
Removing tmp_extension is not needed because awk already removes everything except the checksum value
  • Loading branch information
adiov authored Jan 5, 2025
1 parent 61bf0a0 commit 0be189b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions zfs-inplace-rebalancing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0be189b

Please sign in to comment.