diff --git a/lib/capit/capture.rb b/lib/capit/capture.rb index f1de562..72a89e4 100644 --- a/lib/capit/capture.rb +++ b/lib/capit/capture.rb @@ -129,8 +129,12 @@ def capture_command xvfb = 'xvfb-run --server-args="-screen 0, 1024x768x24" ' xvfb.concat(cmd) else - cmd - end + if check_cutycapt + cmd + else + raise "Required package CutyCapt is not installed." + end + end end def check_xvfb