Skip to content

Commit

Permalink
Merge pull request #11 from tomjn/patch-4
Browse files Browse the repository at this point in the history
swap cl for --clean
  • Loading branch information
Mte90 authored Oct 19, 2020
2 parents aceb64a + c4f115a commit 4950631
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/vagrant-goodhosts/GoodHosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ def addHostEntries
next
end
if cli.include? ".exe"
stdin, stdout, stderr, wait_thr = Open3.popen3(cli, "add", "cl", ip_address, hostnames)
stdin, stdout, stderr, wait_thr = Open3.popen3(cli, "add", "--clean", ip_address, hostnames)
else
stdin, stdout, stderr, wait_thr = Open3.popen3("sudo", cli, "add", "cl", ip_address, hostnames)
stdin, stdout, stderr, wait_thr = Open3.popen3("sudo", cli, "add", "--clean", ip_address, hostnames)
end
if !wait_thr.value.success?
error = true
Expand All @@ -118,9 +118,9 @@ def removeHostEntries
next
end
if cli.include? ".exe"
stdin, stdout, stderr, wait_thr = Open3.popen3(cli, "remove", "cl", ip_address, hostnames)
stdin, stdout, stderr, wait_thr = Open3.popen3(cli, "remove", "--clean", ip_address, hostnames)
else
stdin, stdout, stderr, wait_thr = Open3.popen3("sudo", cli, "remove", "cl", ip_address, hostnames)
stdin, stdout, stderr, wait_thr = Open3.popen3("sudo", cli, "remove", "--clean", ip_address, hostnames)
end
if !wait_thr.value.success?
error = true
Expand Down

0 comments on commit 4950631

Please sign in to comment.