shell script test if value is passed code example
Example: bash if null or empty
if [ -z "$variable" ];
then echo "$variable is null";
else echo "$variable is not null";
fi
if [ -z "$variable" ];
then echo "$variable is null";
else echo "$variable is not null";
fi