|
I have a variable that contains a string, say, What I want to achieve is to check the major version of a program used in my Taskfile, to not use incompatible features. Basically the same thing as the comparison example in templating reference, except the version number is obtained from a shell command. vars:
KICAD_MAJOR:
sh: kicad-cli --version | cut -d. -f1The comparison I want that is currently not working: if: '{{lt .KICAD_MAJOR 10}}' |
Answered by
jaskij
Mar 23, 2026
Replies: 1 comment
|
Just found the |
0 replies
Answer selected by
jaskij
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just found the
atoifunction. Now need to figure how to stack them, but that's a separate topic.