From 1366332e59ffef4121dced126ef7d19a8b12a72f 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 (cherry picked from commit f0c3567740be342355b39a7c7d3ca341d5a4ec0f) --- 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 515da5b844..1bf9d72310 100644 --- a/tests/templates/template_overrides.j2 +++ b/tests/templates/template_overrides.j2 @@ -83,7 +83,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