Vérifiez si la variable bash n'est pas définie
if test -z "$var"
then
echo "\$var is empty"
else
echo "\$var is NOT empty"
fi
Super Dude
if test -z "$var"
then
echo "\$var is empty"
else
echo "\$var is NOT empty"
fi