Skip to content

Commit

Permalink
Do not escape path when checking mount (#306)
Browse files Browse the repository at this point in the history
Signed-off-by: Stanislav Voroniy <stas@voroniy.com>
  • Loading branch information
voroniys authored and clintoncwolfe committed Jun 14, 2018
1 parent 968e91d commit 358cb26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/train/file/local/unix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/train/file/remote/unix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 358cb26

Please sign in to comment.