PATH of bash shell in Windows is not correct. #26149
-
I have these pieces of configurations in my workflow.
I got pub: command not found issue. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
You can try using " pub.bat" instead of directly " pub" to run the commands, this can also work on bash shell. For example:
|
Beta Was this translation helpful? Give feedback.
-
I can’t use this syntax, because I used matrix strategy and I need to run the command in MacOS and Linux too. In my opinion, we should find the true reasons, fix the PATH inheritance in bash of git in Windows. Command of Windows can run without extension defined in PATHEXT environment variable. |
Beta Was this translation helpful? Give feedback.
-
Finally, I refactor the code like the following.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing your workarond.
|
Beta Was this translation helpful? Give feedback.
-
Thanks, your solution is more elegance and readable. |
Beta Was this translation helpful? Give feedback.
Finally, I refactor the code like the following.