We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cd2592 + 5af2512 commit 0f00bf5Copy full SHA for 0f00bf5
Rakefile
@@ -197,8 +197,8 @@ namespace :theme do
197
# Mirror each file into the framework making sure to prompt if already exists.
198
packaged_theme_files.each do |filename|
199
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'
+ if File.exist? file_install_path and ask("#{file_install_path} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
+ next
202
else
203
mkdir_p File.dirname(file_install_path)
204
cp_r File.join(packaged_theme_path, filename), file_install_path
0 commit comments