Fix ShellCheck issues

This commit is contained in:
Colin Hebert 2025-03-23 11:26:08 +11:00
parent 45053f9bee
commit a2d282d483
No known key found for this signature in database
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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