From: Peter Kjellerstedt Date: Fri, 18 Sep 2015 10:46:04 +0000 (+0200) Subject: oe-git-proxy: Allow explicit IP addresses in $NO_PROXY X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~28887 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c01e61d8b79d644880415986bdb1ba925f194329;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git oe-git-proxy: Allow explicit IP addresses in $NO_PROXY Without this fix, if one specified, e.g., 127.0.0.1 in $NO_PROXY, the oe-git-proxy script would fail with a message like this: /home/pkj/yocto/poky/scripts/oe-git-proxy: line 64: 32-127.0.0.1: syntax error: invalid arithmetic operator (error token is ".0.0.1") Signed-off-by: Peter Kjellerstedt Signed-off-by: Ross Burton --- diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy index 48734556a14..24732829fb7 100755 --- a/scripts/oe-git-proxy +++ b/scripts/oe-git-proxy @@ -53,6 +53,7 @@ match_ipv4() { # Determine the mask bitlength BITS=${CIDR##*/} + [ "$BITS" != "$CIDR" ] || BITS=32 if [ -z "$BITS" ]; then return 1 fi