BCDevOps / nrdk

Natural Resource Ministries Developer/Deployment Kit
3 stars 4 forks source link

Suggestion: Bash vs CMD Command Chaining #56

Closed DerekRoberts closed 3 years ago

DerekRoberts commented 3 years ago

In package.json commands are chained together using &&, which fails on Windows' Command Prompt (CMD). A potential solution is to use ||, which should work in CMD, to chain both shell's commands together. & may work for CMD. The downside is potentially unweildy commands.

E.g. bash one && bash two || cmd one & cmd two

DerekRoberts commented 3 years ago

Correction: && now works in CMD on Win 10. Other versions not tested.

Resolved by https://github.com/BCDevOps/nrdk/pull/60