Exit if we can't mount external harddrive
This commit is contained in:
parent
701f762610
commit
11f706a826
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user