Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Izimic | 6ae820e254 |
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue