lib/discourse_theme/watcher.rb in discourse_theme-0.2.2 vs lib/discourse_theme/watcher.rb in discourse_theme-0.2.3
- old
+ new
@@ -25,10 +25,11 @@
else
count = modified.length + added.length + removed.length
if count > 1
Cli.progress "Detected changes in #{count} files, uploading theme"
else
- Cli.progress "Detected changes in #{modified[0].gsub(@dir, '')}, uploading theme"
+ filename = modified[0] || added[0] || removed[0]
+ Cli.progress "Detected changes in #{filename.gsub(@dir, '')}, uploading theme"
end
@uploader.upload_full_theme
end
Cli.success "Done! Watching for changes..."
rescue DiscourseTheme::ThemeError => e