Bash condition not working #27107
-
Hi, Here is the step:
I echoed both variables in the condition: but I still getting the last command in the else executed. I even tried with
and it still doesn’t get in! Bash version is 5.0.17(1)-release. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I’m not sure if that’s what’s causing the problem, but is there any particular reasons why you’re defining |
Beta Was this translation helpful? Give feedback.
-
I did define differently before it’s a copy paste of my last try lol. @airtower-luna . I finally made it work. For anyone who gets the same problem here is the solution:
|
Beta Was this translation helpful? Give feedback.
I did define differently before it’s a copy paste of my last try lol. @airtower-luna .
I finally made it work. For anyone who gets the same problem here is the solution:
We need to create a step before using the value of cluster_status and set it in an evironnement variable.
Then, I don’t know why and I hope someone clarifies this for us, it works by using it in another step.