I've been trying to make an if/else statement in bash and for that you need to put special attention to spaces in the command, besides if you're comparing something that could be blank you have to enclose it with double quotes, this is the if/else that worked for me:
if [ "$status" == "" ]
echo "Endpoints running succesfully"
echo "Endpoints failure"
$ihas a blank value when your statement fails. Always quote your variables when performing comparisons if there is the slightest chance that one of them may be empty, e.g.:
No feedback yet
Form is loading...