Fix bug in fsck check

This commit is contained in:
Taylor Helsper 2020-02-22 23:38:17 -06:00
parent 139a1705dd
commit 0ec349fbf4

View File

@ -65,8 +65,9 @@ set +e
touch /tmp/repairing_drive touch /tmp/repairing_drive
for d in /dev/sd*1; do for d in /dev/sd*1; do
echo "Repairing drive $d ..."; echo "Repairing drive $d ...";
RC=$(fsck -y $d > /tmp/fsck_results 2>&1) fsck -y $d > /tmp/fsck_results 2>&1
if [ $RC -ne 0 ]; then RC=$?
if [ "$RC" -ne 0 ]; then
touch /tmp/fsck_error touch /tmp/fsck_error
fi fi
done done