Closed trajano closed 7 months ago
@trajano I would add this to the script functionality instead of creating a specific section. Because that won't scale. You can already validate for environment variables using env "SSH_AUTH_SOCK"
in the template (and if
statement), all you need is the ability to check for an executable. That said, we do have a catch 22. If you also add the PATH
entry for the executable's location to the aliae config, we can't validate if we can find it unless we first export that internally as well, I will have to check if we can make that work.
script:
- value: |
eval $( ssh-agent )
- if: and (env "SSH_AUTH_SOCK") (exists ssh-agent)
Well we can evaluate path
first and then do a internal path scan in aliae to check if it is executable.
Code of Conduct
What would you like to see changed/added?
Something like
which maps to something along the lines of
Other options