Error handling in bash

shape