We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c09662 commit da744f2Copy full SHA for da744f2
lib/badge/base.rb
@@ -1,6 +1,6 @@
1
module Badge
2
3
- VERSION = "0.8.2"
+ VERSION = "0.8.3"
4
DESCRIPTION = "Add a badge overlay to your app icon"
5
6
def self.root
lib/badge/runner.rb
@@ -77,8 +77,11 @@ def run(path, options)
77
UI.message "Did nothing... Enable --verbose for more info.".red
78
end
79
80
- File.delete(shield) if File.exist?(shield)
81
- File.delete("#{shield.path}.png") if File.exist?("#{shield.path}.png")
+ if shield
+ File.delete(shield) if File.exist?(shield)
82
+ File.delete("#{shield.path}.png") if File.exist?("#{shield.path}.png")
83
+ end
84
+
85
else
86
UI.error "Could not find any app icons...".red
87
0 commit comments