Merge pull request #2962 from weaveworks/fix-shfmt-lint-error

Fix shfmt lint error by escaping $ in sed expression
This commit is contained in:
Bryan Boreham authored and GitHub committed 2017-05-15 13:21:12 +01:00
commit efff6d6e63
1 file changed
+1 -1
+1 -1
View File
@@ -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