]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix quoting
authorRoy Marples <roy@marples.name>
Mon, 20 Apr 2009 12:34:08 +0000 (12:34 +0000)
committerRoy Marples <roy@marples.name>
Mon, 20 Apr 2009 12:34:08 +0000 (12:34 +0000)
dhcpcd-run-hooks.in

index 15239c52aeeb701498c6a1dc318da9ee08c0b573..f9fc1efe67957d7bb32e794229b52416650f48c1 100644 (file)
@@ -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