Shell Scripting 101: Handling errors

preview_player
Показать описание
How to handle errors. Sometimes you may not care, but other times it may be an issue that will prevent the script from running successfully and you need to detect and handle that.
Рекомендации по теме
Комментарии
Автор

Intead of "IF" you can use:

[ $? -ne 0 ] && echo "Error message." && exit 1

Miguel_GM
welcome to shbcf.ru