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