fix temp mount

This commit is contained in:
rootzoll 2019-12-11 17:25:28 +01:00
parent ab0964cbd0
commit 6346233fa7

View file

@ -766,8 +766,8 @@ if [ "$1" = "tempmount" ]; then
echo "error='temp mount failed'"
exit 1
else
echo "isMounted=1"
echo "isBTRFS=0"
isMounted=1
isBTRFS=0
fi
elif [ "${hddFormat}" = "btrfs" ]; then
@ -788,8 +788,8 @@ if [ "$1" = "tempmount" ]; then
echo "error='temp mount failed'"
exit 1
else
echo "isMounted=1"
echo "isBTRFS=1"
isMounted=1
isBTRFS=1
fi
else
@ -797,6 +797,10 @@ if [ "$1" = "tempmount" ]; then
exit 1
fi
# outputting change state
echo "isMounted=${isMounted}"
echo "isBTRFS=${isBTRFS}"
# trigger linking
doLinking=1
@ -808,7 +812,7 @@ fi
if [ "$1" = "link" ] || [ ${doLinking} -eq 1 ]; then
if [ ${isMounted} -eq 0 ]; then
if [ ${isMounted} -eq 0 ] ; then
echo "error='no data drive mounted'"
exit 1
fi