From 358cb2678037efc6dd29b9dfc6ace77452396323 Mon Sep 17 00:00:00 2001 From: Stanislav Voroniy Date: Thu, 14 Jun 2018 19:29:18 +0200 Subject: [PATCH] Do not escape path when checking mount (#306) Signed-off-by: Stanislav Voroniy --- lib/train/file/local/unix.rb | 2 +- lib/train/file/remote/unix.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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{