mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
[rake] Raise error if cleaning does not succeed.
Fixes https://hipbyte.freshdesk.com/helpdesk/tickets/1359.
This commit is contained in:
@@ -52,6 +52,11 @@ module Motion; module Project;
|
||||
if File.exist?(build_dir)
|
||||
App.info 'Delete', build_dir
|
||||
FileUtils.rm_rf build_dir
|
||||
if File.exist?(build_dir)
|
||||
# It can happen that because of file permissions a dir/file is not
|
||||
# actually removed, which can lead to confusing issues.
|
||||
App.fail "Failed to remove `#{build_dir}'. Please remove this path manually."
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user