Closed max-mapper closed 6 years ago
Hey, what do you think of changing it to call bash explicitly? I am concerned some users will not know how to make the intermediate scripts that are generated executable.
@jessegomer oops sorry never responded, yea that would work too!
this is almost done except the lines https://github.com/limey-bean/Anacapa/blob/8b87d6745442c4cb68fe6b97481418492336aa2a/Anacapa_db/anacapa_QC_dada2.sh#L215-L217 embed sh
in the generated files rather than bash
edit also sh
is embedded in the generated blca scripts too
During my containerization process I've been getting
source: command not found
errors. I tracked it down to usage ofsh
explicitly in the various Anacapa shell scripts.So I would recommend changing lines like this:
To simply this:
Since all of the
.sh
files have#!/bin/bash
at the top puttingsh
before them in the commands is unnecessary, and in fact is overridingbash
and forcing it to usesh
, which is causing my issue here.The reason is:
https://stackoverflow.com/questions/13702425/source-command-not-found-in-sh-shell
I think the version of
sh
on Hoffman is bash, but on other systems (such as in my Ubuntu container) thesh
doesn't supportsource
.