-
|
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}}' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Just found the |
Beta Was this translation helpful? Give feedback.
Just found the
atoifunction. Now need to figure how to stack them, but that's a separate topic.