Mercurial > hg > dhcpcd
changeset 2232:97f0168074a3 draft
Fix trim sed fallback
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Mon, 20 Jan 2014 15:19:11 +0000 |
| parents | 78eedd75ccca |
| children | 6229a6424748 |
| files | dhcpcd-run-hooks.in |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcpcd-run-hooks.in Mon Jan 20 15:01:53 2014 +0000 +++ b/dhcpcd-run-hooks.in Mon Jan 20 15:19:11 2014 +0000 @@ -69,7 +69,7 @@ if [ -z "$var" ]; then # So it seems our shell doesn't support wctype(3) patterns # Fall back to sed - var=$(echo "$var" | sed -e 's/^[ \t]*//;s/[ \t]*$//') + var=$(echo "$*" | sed -e 's/^[[:space:]]*//;s/[[:space:]]*$//') fi printf %s "$var" }
