How to determine if a bash variable is empty?

This will return true if a variable is unset or set to the empty string (“”).

if [ -z "${VAR}" ];

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)