jeudi 28 juin 2018

geting each failed results in if multiple conditions

I have below conditions . IF all conditions are meet then it passes. If it fails then need to know which condition makes it to fail ?

if [[ -z “$pas” ]] && [[ $dd_check_pass == “pass” ]] && [[ $asmresultcheck == “pass” ]];
then
zzz=Passed;
else
zzz=Failed;
aaa=”Due to unknown process running”
fi

Aucun commentaire:

Enregistrer un commentaire