pb-udhcpc: Fix string returned from resolve_url
authorJeremy Kerr <jk@ozlabs.org>
Fri, 6 Sep 2013 06:31:32 +0000 (14:31 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 6 Sep 2013 06:31:32 +0000 (14:31 +0800)
In the 'as-is' case, we were echoing both URLs.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
utils/pb-udhcpc

index 252bb11d3ec1cd54ce3572e01e03e7aeb657c1f0..d641e9917b6bd459340ec5dc44c9007cc5d25562 100644 (file)
@@ -17,6 +17,7 @@ resolve_url() {
        if [ "$tmp" != "$file" ]
        then
                echo "$file"
+               return
        fi
 
        # Otherwise, TFTP using an appropriate host. Start with the