From 0be189bbe82df3f9c5927cdc408a4a90c1e76a6c Mon Sep 17 00:00:00 2001 From: Adi Date: Sun, 5 Jan 2025 03:32:45 +0000 Subject: [PATCH] Removing tmp_extension is not needed Removing tmp_extension is not needed because awk already removes everything except the checksum value --- zfs-inplace-rebalancing.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/zfs-inplace-rebalancing.sh b/zfs-inplace-rebalancing.sh index 71e8415..7771865 100755 --- a/zfs-inplace-rebalancing.sh +++ b/zfs-inplace-rebalancing.sh @@ -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