Skip to content

detecting the underlying OS #76

Answered by nat-n
dagap asked this question in Q&A
Jun 24, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Interesting question. Poe doesn't currently have any functionality specifically to support performing different actions depending on the host OS.

I'd suggest using a shell task with a pattern along the lines of that demonstrated here: https://stackoverflow.com/questions/394230/how-to-detect-the-os-from-a-bash-script

Or you could do something similar with a python script task, though this will probably be less convenient.

The plan is to implement conditional tasks #12 which would support this by allowing you to define a task that only runs if another task that checks for a specific OS returns 0. Though the design I have in mind for this feature is only really intended for skipping redundan…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dagap
Comment options

Answer selected by dagap
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants