Skip to content

Commit 88da363

Browse files
committed
Update resources
1 parent c282d79 commit 88da363

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

app.backup_fs.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,7 @@ function fs_mount() {
182182
function fs_umount() {
183183
(( ! "${SSH_ON}" )) && return 0
184184

185-
local msg_e; msg_e=(
186-
'error'
187-
'Error unmounting SSH FS!'
188-
"Error unmounting SSH FS from '${SSH_MNT}'!"
189-
)
190-
191-
umount "${SSH_MNT}" || _msg "${msg_e[@]}"
185+
{ { findmnt -M "${SSH_MNT}" > '/dev/null'; } && umount "${SSH_MNT}"; } || return 0
192186
}
193187

194188
function fs_check() {

0 commit comments

Comments
 (0)