if [ -z "${ABC}" ]
then
LOGDIR=`${JAVA_HOME}/bin/java -cp ${a}/aim.jar my.app.util.GetLogDir "${rsp}"`
Can some one help me with this. What this if is exactly doing. Is it checking if abc exists and the calling GetLogDir's main with some arguments?
-z string
True if the length of string is zero.
To check whether ABC
is empty. If it is then the command will be executed and result will be in the LOGDIR
.
From man test:
-z string True if the length of string
string is zero.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With