summaryrefslogtreecommitdiffstats
path: root/dhcpcd-run-hooks.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-04-20 12:34:08 +0000
committerRoy Marples <roy@marples.name>2009-04-20 12:34:08 +0000
commitba5a9fd20b36523240a9cb3f7c6f4d7d6da4efde (patch)
tree27658470620d2df93c2d84251f9f0a7bbb86dda6 /dhcpcd-run-hooks.in
parent34096866857748a452d7389c772221005a5fd73d (diff)
downloaddhcpcd-ba5a9fd20b36523240a9cb3f7c6f4d7d6da4efde.tar.xz
Fix quoting
Diffstat (limited to 'dhcpcd-run-hooks.in')
-rw-r--r--dhcpcd-run-hooks.in6
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