From 50b1d9236fb225ec5383901e745bc1bf591e83e1 Mon Sep 17 00:00:00 2001 From: miky Date: Wed, 4 Nov 2015 14:36:22 -0800 Subject: [PATCH] Escape dirname for shell commands in install_seed --- lib/cocoaseeds.rb | 1 + lib/cocoaseeds/core.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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