Skip to content

Commit

Permalink
sshfs_reverse_mount: delete some dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
dustymabe committed Nov 11, 2016
1 parent 043056a commit 411c08e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/vagrant-sshfs/cap/host/linux/sshfs_reverse_mount.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ def self.sshfs_reverse_is_folder_mounted(env, opts)
hostpath = opts[:hostpath].dup
hostpath.gsub!("'", "'\\\\''")
hostpath = hostpath.chomp('/') # remove trailing / if exists
cat_cmd = Vagrant::Util::Which.which('cat')
result = Vagrant::Util::Subprocess.execute(cat_cmd, '/proc/mounts')
mounts = File.open('/proc/mounts', 'r')
mounts.each_line do |line|
if line.split()[1] == hostpath
Expand Down

0 comments on commit 411c08e

Please sign in to comment.