fix unmount issus when dir is not mount

pull/1/head
Izimic 2021-01-01 09:17:19 +01:00
parent db8639b893
commit 6ae820e254
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ class RootFS::RootFS
def unmount(directory = nil) def unmount(directory = nil)
if directory if directory
execute "umount '#{@directory}/#{directory}'" execute "mountpoint -q '#{@directory}/#{directory}' || exit 0 && umount '#{@directory}/#{directory}'"
return return
end end