#!/bin/bash area="$(slurp)" err_code=$? if [ $err_code -ne 0 ]; then exit 1 fi /home/vtimofei/scripts/screenshot "${area}"