diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-07-05 21:06:34 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-07-05 21:06:34 -0400 |
commit | 9b85e3d33c4af525bfe1cd95e361dbeaccb12ff1 (patch) | |
tree | 3c96363d925ceaa00819389eaade1af9f5f23215 | |
parent | 782340b34d17533a5ccb217e50186cb3b73d37f3 (diff) | |
download | puppet-tozt-9b85e3d33c4af525bfe1cd95e361dbeaccb12ff1.tar.gz puppet-tozt-9b85e3d33c4af525bfe1cd95e361dbeaccb12ff1.zip |
fix sh argument handling
-rwxr-xr-x | bin/algo-config | 4 |
1 files changed, 3 insertions, 1 deletions
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 |