I see why it was bad and verted.. you can't run a test like this: var="" var2="something" [ -z $var ] [ -z $var2 ] The first will just fail because $var is not encapsulated in quotes.
I see why it was bad and verted.. you can't run a test like this:
var=""
var2="something"
[ -z $var ]
[ -z $var2 ]
The first will just fail because $var is not encapsulated in quotes.