diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-10-10 23:32:36 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-10-10 23:32:36 +0200 |
commit | d3a85b3f154378fede22eddbcd338bf45db52e46 (patch) | |
tree | 136c93388ef302413894af8e56619ebdd9dfe98c | |
parent | 6dc5cc825dc30153789157439795f2ec5714f470 (diff) |
tidy: disambiguate non-array variable
-rwxr-xr-x | postfix/postfix.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh index f4925a1..9ae77df 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -164,7 +164,7 @@ getlinesfromfile() { case "$subparam" in *=) oldparam=$(echo "$subparam" | awk -F= '{print $1}') - replacements="$replacements;s/,*[^,]*$oldparam[^,]*,*/,/" + replacements="$replacements;s/,*[^,]*${oldparam}[^,]*,*/,/" continue ;; *=*=*) |