liquidinvestigations / node

Deploy Liquid Investigations on Nomad
https://github.com/liquidinvestigations/docs/wiki
MIT License
6 stars 6 forks source link

Unbashify script inside nomad template #283

Closed RazorBest closed 3 years ago

RazorBest commented 4 years ago

A script inside a nomad template was using exclusive bash syntax, but it was run with /bin/sh. There were 2 solutions: run it with bash or change the script in accordance to POSIX. I chose the second method.

gabriel-v commented 4 years ago

Sure, but the tests are failing.

I suggest we use bash everywhere instead of editing scripts to remove double [[:

Note: I expect some containers (those based off Alpine) won't have bash already installed. In those cases, it's best to remove the bash features like you did, and maybe document them through a comment (something like # this image doesn't have bash!!1!)

gabriel-v commented 3 years ago

merged to master