From f0c3567740be342355b39a7c7d3ca341d5a4ec0f Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Tue, 4 May 2021 11:30:28 +0200 Subject: [PATCH] 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 --- tests/templates/template_overrides.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/templates/template_overrides.j2 b/tests/templates/template_overrides.j2 index 6be8b794be..53ad4f92b5 100644 --- a/tests/templates/template_overrides.j2 +++ b/tests/templates/template_overrides.j2 @@ -96,7 +96,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