summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkamikaze-fsck3
1 files changed, 2 insertions, 1 deletions
diff --git a/kamikaze-fsck b/kamikaze-fsck
index 6858a8a..c7e779d 100755
--- a/kamikaze-fsck
+++ b/kamikaze-fsck
@@ -28,7 +28,7 @@ touch "${tmp_dir}/faulty-inode"
while [ -f "${tmp_dir}/faulty-inode" ]; do
if [ -s "${tmp_dir}/faulty-inode" ]; then
- debugfs -w "$1" -R "$(cat "${tmp_dir}/faulty-inode")"
+ debugfs -w "$1" -R "$(uniq < "${tmp_dir}/faulty-inode")"
fi
rm "${tmp_dir}/faulty-inode"
@@ -57,6 +57,7 @@ while [ -f "${tmp_dir}/faulty-inode" ]; do
while pgrep -xf "e2fsck -f -y $1 -E no_optimize_extents,fixes_only -C 0"; do
sleep 1
done
+ break
fi
done
done