Skip to content

Commit f81f527

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. Backport of INCATools/ontology-development-kit#1302
1 parent f3f1e7d commit f81f527

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/incatools/odk/templates/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)