diff --git a/testing.sh b/testing.sh index 614b415..e8aed88 100755 --- a/testing.sh +++ b/testing.sh @@ -67,7 +67,7 @@ function assertions() { } function assert_matching_file_hardlinked() { - if ! [ $(stat -c "%i" "$1") -eq $(stat -c "%i" "$2") ]; then + if ! [ "$(stat -c "%i" "$1")" -eq "$(stat -c "%i" "$2")" ]; then echo "File '$1' was not hardlinked to '$2' when it should have been!" exit 1 fi diff --git a/zfs-inplace-rebalancing.sh b/zfs-inplace-rebalancing.sh index 1018f9b..903cfbc 100755 --- a/zfs-inplace-rebalancing.sh +++ b/zfs-inplace-rebalancing.sh @@ -335,7 +335,6 @@ if [ "${passes_flag}" -ge 1 ]; then touch "./${rebalance_db_file_name}" fi -key="" paths=() # Read grouped_inodes.txt line by line @@ -350,7 +349,6 @@ while IFS= read -r line; do # Process the previous group process_inode_group "${paths[@]}" fi - key="$line" paths=() fi done < grouped_inodes.txt