Whenever a shell script is executed it checks the exit status
of command to verify if it executed sucessfully.
True = 0
False = Non Zero Value
You can check exit status value as below:
# Exit status 0 returned because command executed successfully.
echo $? # Non-zero exit status returned because command failed to execute.
./script.sh line 5 lskdf command not found.