bash se definido variável
if [ -z "$var" ]; then echo "var is blank"; else echo "var is set to '$var'"; fi
Tiago F2
if [ -z "$var" ]; then echo "var is blank"; else echo "var is set to '$var'"; fi