From 6bbd8d7a4cba40ecfa4518a5ca7a8fde471ba48a Mon Sep 17 00:00:00 2001 From: Marc CARRE Date: Mon, 15 May 2017 12:36:55 +0100 Subject: [PATCH] Escape $ in sed expression. This fixes new error raised by latest version of shfmt, leading to build failures. --- test/run-integration-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run-integration-tests.sh b/test/run-integration-tests.sh index f2d74b7e..97c8e9d1 100755 --- a/test/run-integration-tests.sh +++ b/test/run-integration-tests.sh @@ -284,7 +284,7 @@ function configure() { local inventory_file=$(mktemp /tmp/ansible_inventory_XXXXX) echo "[all]" >"$inventory_file" # shellcheck disable=SC2001 - echo "$2" | sed "s/$/:$3/" >>"$inventory_file" + echo "$2" | sed "s/\$/:$3/" >>"$inventory_file" # Configure the provisioned machines using Ansible, allowing up to 3 retries upon failure (e.g. APT connectivity issues, etc.): for i in $(seq 3); do