Check if bash variable equals 0 [duplicate]
This question already has answers here: How can I compare numbers in Bash? (9 answers) Closed 3 years ago. I have a bash variable depth and I would like to test if it equals 0. In case yes, I want to stop executing of script. So far I have: zero=0; if [ $depth -eq $zero … Read more