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 f58ecf338c
commit b3ea7d112e

View File

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