mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-02-10 12:35:23 +08:00
Fix rake build task if there is no archive old previous version present
This commit is contained in:
3
Rakefile
3
Rakefile
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
desc 'Cleanup old build files'
|
desc 'Cleanup old build files'
|
||||||
task :clean do
|
task :clean do
|
||||||
|
archive_name_pattern = 'build_tools*.tar.gz'
|
||||||
sh('sudo rm -rf out')
|
sh('sudo rm -rf out')
|
||||||
sh('rm build_tools*.tar.gz')
|
sh("rm #{archive_name_pattern}") unless Dir.glob(archive_name_pattern).empty?
|
||||||
end
|
end
|
||||||
|
|
||||||
desc 'Build version anew'
|
desc 'Build version anew'
|
||||||
|
|||||||
Reference in New Issue
Block a user