diff --git a/lib/train/file/local/unix.rb b/lib/train/file/local/unix.rb index 6730a039..1949b6a1 100644 --- a/lib/train/file/local/unix.rb +++ b/lib/train/file/local/unix.rb @@ -47,7 +47,7 @@ def stat def mounted @mounted ||= - @backend.run_command("mount | grep -- ' on #{@spath} '") + @backend.run_command("mount | grep -- ' on #{@path} '") end def grouped_into?(sth) diff --git a/lib/train/file/remote/unix.rb b/lib/train/file/remote/unix.rb index 0d26bed1..5ecc8f39 100644 --- a/lib/train/file/remote/unix.rb +++ b/lib/train/file/remote/unix.rb @@ -33,7 +33,7 @@ def exist? def mounted @mounted ||= - @backend.run_command("mount | grep -- ' on #{@spath} '") + @backend.run_command("mount | grep -- ' on #{@path} '") end %w{