diff --git a/lib/cocoaseeds.rb b/lib/cocoaseeds.rb index 2d8a1b8..c42736e 100644 --- a/lib/cocoaseeds.rb +++ b/lib/cocoaseeds.rb @@ -3,6 +3,7 @@ require 'fileutils' require 'xcodeproj' require 'yaml' +require 'shellwords' module Seeds require 'cocoaseeds/version' diff --git a/lib/cocoaseeds/core.rb b/lib/cocoaseeds/core.rb index 2182c4a..9c4c9b8 100644 --- a/lib/cocoaseeds/core.rb +++ b/lib/cocoaseeds/core.rb @@ -322,7 +322,7 @@ def remove_seeds def install_seeds self.seeds.sort.each do |name, seed| dirname = File.join(self.root_path, "Seeds", seed.name) - self.install_seed(seed, dirname) + self.install_seed(seed, Shellwords.escape(dirname)) next if not seed.files