Compare commits

..

1 Commits

Author SHA1 Message Date
Izimic 6ae820e254 fix unmount issus when dir is not mount 2021-01-01 13:23:46 +01:00
1 changed files with 1 additions and 1 deletions

View File

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