Skip to content

Bash one liner if statement is not working #25399

Answered by Jojoooo1
Jojoooo1 asked this question in Actions
Discussion options

You must be logged in to vote

Hi @yanjingzhu,

My response from days ago seems to not have been registered :(. Anyway basically my IF condition should have works since it was measuring the length of the TAG_LIST variable.

I was able to solve it using this which make sens from an array stand of point by using the two parentheses:

TAG_LIST=($(echo $NEW_RELEASE_VERSION | tr '.' ' '))

All the best,

Jonathan.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants