summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2021-05-04 11:30:28 +0200
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2021-05-11 05:39:20 +0000
commit326201932f93fc18371c2c5385fbf55ceb5d882d (patch)
tree503704118ee890b0603b171452c8540d4322de58 /tests
parent5687029e38aec76bff18c27e2421825ac431ad30 (diff)
downloadkolla-326201932f93fc18371c2c5385fbf55ceb5d882d.tar.gz
kolla-326201932f93fc18371c2c5385fbf55ceb5d882d.zip
CI: drop bashism from template overrides
[[ is bash only In many distributions /bin/sh == bash but not in Debian and derived where it is dash (very simple POSIX shell). Change-Id: I2b084ea78b236623b174473f411bae04e624a3e9 (cherry picked from commit f0c3567740be342355b39a7c7d3ca341d5a4ec0f)
Diffstat (limited to 'tests')
-rw-r--r--tests/templates/template_overrides.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/templates/template_overrides.j2 b/tests/templates/template_overrides.j2
index 679cfb198..e7c98bf47 100644
--- a/tests/templates/template_overrides.j2
+++ b/tests/templates/template_overrides.j2
@@ -95,7 +95,7 @@ ENV PIP_TRUSTED_HOST=
ENV PIP_EXTRA_INDEX_URL=
{% endif %}
-RUN if [[ -f /usr/etc/npmrc ]]; then \
+RUN if [ -f /usr/etc/npmrc ]; then \
unlink /usr/etc/npmrc; \
fi \
&& rm -f /etc/npmrc