From 445b7224615f39d4ef873e3161e2f8ca724ea48b Mon Sep 17 00:00:00 2001 From: Marc O'Morain Date: Fri, 27 Sep 2019 12:52:09 +0100 Subject: [PATCH] Quote the arguemnt to `xcode-select` correctly If there are spaced in the path, xcode select would fail to run. Fixes #354 --- lib/xcode/install/select.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xcode/install/select.rb b/lib/xcode/install/select.rb index efe3f5a3..949e970b 100644 --- a/lib/xcode/install/select.rb +++ b/lib/xcode/install/select.rb @@ -28,7 +28,7 @@ def validate! def run xcode = @installer.installed_versions.detect { |v| v.version == @version } - `sudo xcode-select --switch #{xcode.path}` + `sudo xcode-select --switch "#{xcode.path}"` @installer.symlink xcode.version if @should_symlink end end