]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Minor optimisation.
authorRoy Marples <roy@marples.name>
Fri, 10 Jul 2015 08:43:59 +0000 (08:43 +0000)
committerRoy Marples <roy@marples.name>
Fri, 10 Jul 2015 08:43:59 +0000 (08:43 +0000)
dhcpcd-run-hooks.in

index f1e86900ef2939014e604f191499014ad6dd620b..7ad1afa1ed8935a2b9ef092d9a591d4c2d9d5503 100644 (file)
@@ -118,8 +118,7 @@ remove_markers()
 comp_file()
 {
 
-       [ -e "$1" ] || return 1
-       [ -e "$2" ] || return 1
+       [ -e "$1" -a -e "$2" ] || return 1
 
        if type cmp >/dev/null 2>&1; then
                cmp -s "$1" "$2"