Check, if file exists. Only delete if exists.
This commit is contained in:
parent
c5c2f9ef2b
commit
381532da45
1 changed files with 3 additions and 1 deletions
|
@ -374,7 +374,9 @@ class Package < ApplicationModel
|
|||
|
||||
# install file
|
||||
puts "NOTICE: uninstall '#{location}'"
|
||||
if File.exist?( location )
|
||||
File.delete( location )
|
||||
end
|
||||
|
||||
# rename existing file
|
||||
backup_location = location + '.save'
|
||||
|
|
Loading…
Reference in a new issue