I'm using below if condition in shell script
if [! -z "$failedTC"] || [-n "$failedTC"];
then
echo "ITS not empaty AND NOT NULL"
else
echo "ITS empty or NULL"
fi
The above code I'm checking the $failedTC shouldn't be null and empty. But the if condition throws below error message in jenkins. I used the above script in jenkins Execute Shell window.
/tmp/jenkins371454092166709762.sh: line 23: [!: command not found /tmp/jenkins371454092166709762.sh: line 23: [-n: command not found
Any leads....