Bug fix
This commit is contained in:
parent
1bbc562fce
commit
b8d0e9de8a
@ -4,9 +4,9 @@ source ./config.sh
|
|||||||
|
|
||||||
# IO Redirection
|
# IO Redirection
|
||||||
exec > $LOGFILE
|
exec > $LOGFILE
|
||||||
|
|
||||||
exec 2> $ERRLOG
|
exec 2> $ERRLOG
|
||||||
|
|
||||||
|
|
||||||
if [[ -n $BMOUNT ]] && ! grep -qs $BMOUNT /proc/mounts; then
|
if [[ -n $BMOUNT ]] && ! grep -qs $BMOUNT /proc/mounts; then
|
||||||
echo Mounting $BMOUNT ...
|
echo Mounting $BMOUNT ...
|
||||||
mount $BMOUNT
|
mount $BMOUNT
|
||||||
@ -85,6 +85,6 @@ while read line; do
|
|||||||
# echo --\> $line
|
# echo --\> $line
|
||||||
done < backup_list
|
done < backup_list
|
||||||
|
|
||||||
if [[ "$MOUNTED" -eq 0 ]]; then
|
if [[ "$MOUNTED" = 0 ]]; then
|
||||||
umount $BMOUNT
|
umount $BMOUNT
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user