4 ms·
Looks like the correct answer is to call a python script (or similar). I'm impressed by the bash knowledge of the replier, but yikes. I stand by my rule to abor
by jacobmischka 5y ago
Looks like the correct answer is to call a python script (or similar). I'm impressed by the bash knowledge of the replier, but yikes. I stand by my rule to abort from bash as soon as anything less trivial than an if statement is required.
- LilBytes 5y agoI made this mistake over the last few weeks. Needed to build a custom R Shiny server with CI/CD, typical build and deploy. I start writing the initial install script which is in Bash. I didn't take a step back when I started writing the CI/CD or the customised tooling to automate the deployment. Now I'm a thousand lines deep across two pipelines and I'm equal parts impressed and terrified of the bash monster I've created.
- yohannparis 5y agoSometimes it's nice to have a pure bash script if you don't know your environment. If the script is simple enough it might be worth learning and implementing a bash script than trying to test if Python is installed and the right version etc.