Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Commit

Permalink
Escape dirname for shell commands in install_seed
Browse files Browse the repository at this point in the history
  • Loading branch information
miky committed Nov 4, 2015
1 parent 9928eee commit 50b1d92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/cocoaseeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require 'fileutils'
require 'xcodeproj'
require 'yaml'
require 'shellwords'

module Seeds
require 'cocoaseeds/version'
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoaseeds/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 50b1d92

Please sign in to comment.