diff options
| author | Roy Marples <roy@marples.name> | 2009-04-20 12:34:08 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2009-04-20 12:34:08 +0000 |
| commit | ba5a9fd20b36523240a9cb3f7c6f4d7d6da4efde (patch) | |
| tree | 27658470620d2df93c2d84251f9f0a7bbb86dda6 /dhcpcd-run-hooks.in | |
| parent | 34096866857748a452d7389c772221005a5fd73d (diff) | |
| download | dhcpcd-ba5a9fd20b36523240a9cb3f7c6f4d7d6da4efde.tar.xz | |
Fix quoting
Diffstat (limited to 'dhcpcd-run-hooks.in')
| -rw-r--r-- | dhcpcd-run-hooks.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in index 15239c52..f9fc1efe 100644 --- a/dhcpcd-run-hooks.in +++ b/dhcpcd-run-hooks.in @@ -49,11 +49,11 @@ list_interfaces() # but sed may not always be available at the time. key_get_value() { - local key=$1 value= x= line= + local key="$1" value= x= line= shift if type sed >/dev/null 2>&1; then - sed -n "s/^${key}//p" $@ + sed -n "s/^$key//p" $@ else for x; do while read line; do @@ -69,7 +69,7 @@ key_get_value() # but sed may not always be available at the time. remove_markers() { - local m1=$1 m2=$2 x= line= in_marker=0 + local m1="$1" m2="$2" x= line= in_marker=0 shift; shift if type sed >/dev/null 2>&1; then |
