Whitespace and style
authorRoy Marples <roy@marples.name>
Wed, 23 Dec 2020 20:31:40 +0000 (20:31 +0000)
committerRoy Marples <roy@marples.name>
Wed, 23 Dec 2020 20:31:40 +0000 (20:31 +0000)
resolvconf.in

index a1a89bfdfdfa01f9fa9acc646d268af9fb8bc1c7..e7b0ffed4dca94295c29f654f40034287dfdcbe8 100644 (file)
@@ -448,12 +448,14 @@ list_resolv()
                $force || report=true
        elif ! $excl; then
                cd "$IFACEDIR"
+
                for i in $interface_order; do
                        [ -f "$i" ] && list="$list $i"
                        for ii in "$i":* "$i".*; do
                                [ -f "$ii" ] && list="$list $ii"
                        done
                done
+
                for i in $dynamic_order; do
                        if [ -e "$i" ] && ! [ -e "$METRICDIR/"*" $i" ]; then
                                list="$list $i"
@@ -465,6 +467,7 @@ list_resolv()
                                fi
                        done
                done
+
                # Interfaces have an implicit metric of 0 if not specified.
                for i in *; do
                        if [ -f "$i" ] && ! [ -e "$METRICDIR/"*" $i" ]; then
@@ -942,9 +945,9 @@ d)
                        "$PRIVATEDIR/$i" \
                        "$EXCLUSIVEDIR/"*" $i" || exit $?
        done
-       if ! ${changed}; then
+       if ! $changed; then
                # Set the return code based on the forced flag
-               ${force}
+               $force
                exit $?
        fi
        unset changed i