You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #1042, @mlorbetske gives a sample post-action with "condition": "(OS != \"windows\")" so that it will only run on non-Windows systems. But in SAFE-Stack/SAFE-template#36, it seems that that condition doesn't actually work to exclude a post-action from a Windows machine, causing the template installation to fail. (That particular post-action runs the Unix chmod command, so it will only work on Linux or OS X machines). I've found one reference to a condition called OperatingSystemKind, but I haven't found any documentation for that condition. What values is it expected to have? How should I use it to ensure that a particular post-action only runs on Unix-like systems?
The text was updated successfully, but these errors were encountered:
Yep, changing the condition to "(OS != \"Windows_NT\")" fixed SAFE-Stack/SAFE-template#36. And on further research, I found that the OperatingSystemKind variable I was asking about was a config variable set up just for those specific unit tests, and is not something generally available. So OS is the environment variable to check.
And this issue can be closed: now that I know how to check for Windows properly, I've updated the documentation for the chmod post-action to have the right condition, so there's no further action needed on this AFAICT.
In #1042, @mlorbetske gives a sample post-action with
"condition": "(OS != \"windows\")"
so that it will only run on non-Windows systems. But in SAFE-Stack/SAFE-template#36, it seems that that condition doesn't actually work to exclude a post-action from a Windows machine, causing the template installation to fail. (That particular post-action runs the Unixchmod
command, so it will only work on Linux or OS X machines). I've found one reference to a condition calledOperatingSystemKind
, but I haven't found any documentation for that condition. What values is it expected to have? How should I use it to ensure that a particular post-action only runs on Unix-like systems?The text was updated successfully, but these errors were encountered: