Skip to content

Commit

Permalink
Remove redundant cmp check
Browse files Browse the repository at this point in the history
  • Loading branch information
adiov authored Jan 18, 2025
1 parent 220c4b1 commit ceece0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfs-inplace-rebalancing.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function rebalance() {
exit 1
fi

if [[ "${original_perms}" == "${copy_perms}"* ]] && cmp -s "${file_path}" "${tmp_file_path}"; then
if [[ "${original_perms}" == "${copy_perms}"* ]]; then
color_echo "${Green}" "Attribute and permission check OK"
else
color_echo "${Red}" "Attribute and permission check FAILED: ${original_perms} != ${copy_perms}"
Expand Down

0 comments on commit ceece0f

Please sign in to comment.