Permalink
Browse files

Merge pull request #16 from seliquity/master

Installation bugfix
  • Loading branch information...
2 parents 221d566 + e28df31 commit f29527f62b46afbb2e92c23f34d8cc73736eb8a0 @nicksieger committed May 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sheepsafe/installer.rb
@@ -92,8 +92,8 @@ def setup_network_location
if agree "Next, I'll set up the SOCKS proxy in the \"Untrusted\" location for you. OK\? (yes/no)\n"
system "networksetup -switchtolocation Untrusted"
- wifi_service = `networksetup -listallnetworkservices`.lines.detect {|l| l[/(AirPort|Wi-Fi)/, 1] }
- system "networksetup -setsocksfirewallproxy wifi_service localhost #{config.socks_port}"
+ wifi_service = `networksetup -listallnetworkservices`.lines.detect {|l| l[/(AirPort|Wi-Fi)/, 1] }.gsub(/\n/,'')
+ system "networksetup -setsocksfirewallproxy \"#{wifi_service}\" localhost #{config.socks_port}"
end
end

0 comments on commit f29527f

Please sign in to comment.