mirror of
https://github.com/markusressel/zfs-inplace-rebalancing
synced 2026-02-05 05:24:07 +00:00
Fix ShellCheck issues
This commit is contained in:
parent
45053f9bee
commit
a2d282d483
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user