Exit if we can't mount external harddrive

This commit is contained in:
Jack-Benny Persson 2013-12-17 20:32:11 +01:00
parent 701f762610
commit 11f706a826

View File

@ -82,13 +82,14 @@ if [ "$Where" = "HDD" ] || [ "$Where" = "Tape&HDD" ]; then
if [ $? -ne 0 ]; then
echo "$CurTime Couldn't mount $ExtHDD on ${MntPoint}, aborting"\
> /dev/stderr
exit 2
fi
if [ ! -d "${MntPoint}/${ExtHDDdir}" ]; then
printf "$CurTime ${MntPoint}/${ExtHDDdir} dosen't exist" \
> /dev/stderr
printf ", aborting\n" > /dev/stderr
exit 2
exit 2
fi
fi