Skip to content

Commit

Permalink
fix: forgot to remove variable
Browse files Browse the repository at this point in the history
  • Loading branch information
meo-pill committed Dec 14, 2024
1 parent d4e70de commit f5debd3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zfs-inplace-rebalancing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,16 @@ function rebalance() {
# note: no lsattr on Mac OS or FreeBSD

# file permissions, owner, group size, modification time
original_md5="${original_md5} $(stat -f "%Sp %Su %Sg %z %m" "${file_path}")"
original_md5="$(stat -f "%Sp %Su %Sg %z %m" "${file_path}")"
# file content
original_md5="${original_md5} $(md5 -q "${file_path}")"

# file permissions, owner, group size, modification time
copy_md5="${copy_md5} $(stat -f "%Sp %Su %Sg %z %m" "${tmp_file_path}")"
copy_md5="$(stat -f "%Sp %Su %Sg %z %m" "${tmp_file_path}")"
# file content
copy_md5="${copy_md5} $(md5 -q "${tmp_file_path}")"
# remove the temporary extension
copy_md5=${copy_md5%"${tmp_extension}"}
else
echo "Unsupported OS type: $OSTYPE"
exit 1
Expand Down

0 comments on commit f5debd3

Please sign in to comment.