lib/desoto-photoapp.rb in desoto-photoapp-0.1.0 vs lib/desoto-photoapp.rb in desoto-photoapp-0.1.1

- old
+ new

@@ -91,11 +91,12 @@ Dir[*files] end def empty_print_queue? if printer = `lpstat -d` - printer = printer.scan(/:\s*(.+)/).flatten.first.strip - `lpstat -o -P #{printer}`.strip == '' + if printer = printer.scan(/:\s*(.+)/).flatten.first + `lpstat -o -P #{printer}`.strip == '' + end end end def upload S3.new(@config).push