Skip to content

Commit 8c276f2

Browse files
committed
Avoid here-string in run.sh.
The Dash shell (possibly among others) does not support here-strings, so we use a classic pipe instead. closes #1301
1 parent a8395a3 commit 8c276f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/src/ontology/run.sh.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ODK_TAG=${ODK_TAG:-latest}
7777
ODK_JAVA_OPTS=${ODK_JAVA_OPTS:-{{ project.robot_java_args }}}
7878
{% else %}
7979
if [ -z "$USE_SINGULARITY" ]; then
80-
{% raw %}DEFAULT_MAX_MEM=$(bc <<<"($(docker info --format={{.MemTotal}}) * .9) / (1024*1024*1024)")G{% endraw %}
80+
{% raw %}DEFAULT_MAX_MEM=$(echo "($(docker info --format={{.MemTotal}}) * .9) / (1024*1024*1024)" | bc)G{% endraw %}
8181
else
8282
DEFAULT_MAX_MEM=8G
8383
fi

0 commit comments

Comments
 (0)