#!/usr/bin/env bash # # # cat /etc/shadow if [ "$?" -ne "0" ] then echo "Command failed" exit 1 else echo "Command succeeded" exit 0 fi # Exit with an explicit exit status. exit 0