Can someone tell me why this sh script doesn't behave how
I expect it to when the partition doesn't exist ?
for drv in $ext2drives; do
echo; echo "Checking filesystem on drive $drv."
fsck.ext2 -p -C - $drv:
if [ $? -ge 2 ]; then
echo
echo "Warning: e2fsck FAILED ($?)"
What I see is:
Warning: e2fsck FAILED (0)
Shouldn't the $? -ge 2 mean that the error numbers below 2
are not shown ?
Regards,
Peter