fix double umount issue where multiple repos have the same datapath
This commit is contained in:
parent
cc291b2ea4
commit
a8e4f54266
2
bare.sh
2
bare.sh
|
@ -389,6 +389,7 @@ function do_mount() {
|
|||
}
|
||||
|
||||
function do_umount() {
|
||||
if is_mounted $DATAPATH; then
|
||||
if [[ $USEUSMB -eq 1 ]]; then
|
||||
log "Unmounting usmb volume '$USMBNAME'"
|
||||
usmb -u $USMBNAME
|
||||
|
@ -399,6 +400,7 @@ function do_umount() {
|
|||
log "Unmounting dir $DATAPATH"
|
||||
umount $DATAPATH
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function updatedir() {
|
||||
|
|
Loading…
Reference in New Issue