|
|
|
|
|
by jakub_g
3845 days ago
|
|
Slightly off-topic but maybe some people will find it useful: I used to write my various glue-things-together scripts in bash, but this quickly becomes a nightmare as the script grows, due to bash's corner cases, syntax, portability issues etc. Recently I wrote my massive glue-things-together script with nodejs (since I already use node for many things) and it's much more maintainable and I couldn't be more happy. Node 0.12 has execSync which was the missing piece for making node the proper shell scripting platform. If you are interested, you may want to check shelljs [1] and my snippets for robust `exec()` and `cd()` in node. [1] https://github.com/shelljs/shelljs
[2] https://gist.github.com/jakub-g/a128174fc135eb773631 |
|