summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkamikaze-fsck6
1 files changed, 5 insertions, 1 deletions
diff --git a/kamikaze-fsck b/kamikaze-fsck
index 1eb3e4e..699f4ab 100755
--- a/kamikaze-fsck
+++ b/kamikaze-fsck
@@ -29,7 +29,11 @@ touch "${tmp_dir}/faulty-inode"
while [ -f "${tmp_dir}/faulty-inode" ]; do
if [ -s "${tmp_dir}/faulty-inode" ]; then
>&2 date
- debugfs -w "$1" -R "$(uniq < "${tmp_dir}/faulty-inode")"
+ uniq \
+ <"${tmp_dir}/faulty-inode" \
+ | while read -r s; do
+ debugfs -w "$1" -R "${s}"
+ done
fi
>&2 date
rm "${tmp_dir}/faulty-inode"