diff options
| author | Roy Marples <roy@marples.name> | 2019-07-17 17:11:38 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-07-17 17:11:38 +0100 |
| commit | 0ed0dd78d28f899d7eac03996d7624afd5601524 (patch) | |
| tree | b69727cc2cf07fd51669cc38992cc8b77883067c | |
| parent | 563b31e53e20b3f3541f5d6c96ea12bc48e40e96 (diff) | |
| download | openresolv-0ed0dd78d28f899d7eac03996d7624afd5601524.tar.xz | |
Don't embed variables in formatting string.
| -rw-r--r-- | resolvconf.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/resolvconf.in b/resolvconf.in index 50903b6..e9a7787 100644 --- a/resolvconf.in +++ b/resolvconf.in @@ -128,13 +128,13 @@ usage() # Also strip any comments denoted by #. resolv_strip() { - d= - for n; do - case "$n" in + space= + for word; do + case "$word" in \#*) break;; esac - printf "$d%s" "${n%.}" - d=" " + printf "%s%s" "$space${word%.}" + space=" " done printf "\n" } |
