From 9b85e3d33c4af525bfe1cd95e361dbeaccb12ff1 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 5 Jul 2021 21:06:34 -0400 Subject: fix sh argument handling --- bin/algo-config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/algo-config b/bin/algo-config index 38e3659..7421504 100755 --- a/bin/algo-config +++ b/bin/algo-config @@ -16,7 +16,9 @@ if [ -z "${VIRTUAL_ENV:-}" ]; then fi fixup_configs() { - name=$(shift) + name=$1 + shift + sed -i 's/^\(Address.*\) *,.*/\1/' "$config_path"/"${name}".conf sed -i 'g/^DNS/d' "$config_path"/"${name}".conf cp "$config_path"/"${name}".conf "$config_path"/"${name}"-not-captive.conf -- cgit v1.2.3-54-g00ecf