Skip to content
This repository was archived by the owner on Jan 27, 2018. It is now read-only.

Commit 0f00bf5

Browse files
committed
Merge pull request #81 from xuhdev/fix-theme-install
Fix that theme will not be overwritten if exists.
2 parents 1cd2592 + 5af2512 commit 0f00bf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ namespace :theme do
197197
# Mirror each file into the framework making sure to prompt if already exists.
198198
packaged_theme_files.each do |filename|
199199
file_install_path = File.join(JB::Path.base, filename)
200-
if File.exist? file_install_path
201-
next if ask("#{file_install_path} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
200+
if File.exist? file_install_path and ask("#{file_install_path} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
201+
next
202202
else
203203
mkdir_p File.dirname(file_install_path)
204204
cp_r File.join(packaged_theme_path, filename), file_install_path

0 commit comments

Comments
 (0)