diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2015-09-18 12:46:04 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-21 15:20:09 +0100 |
commit | c01e61d8b79d644880415986bdb1ba925f194329 (patch) | |
tree | b7ce1f9000204dd9abaa91b38ff0256a18a0f13e /scripts/oe-git-proxy | |
parent | 27138b2eeafa8b81f3020ad9d8a55263e636288c (diff) | |
download | openembedded-core-c01e61d8b79d644880415986bdb1ba925f194329.tar.gz openembedded-core-c01e61d8b79d644880415986bdb1ba925f194329.tar.bz2 openembedded-core-c01e61d8b79d644880415986bdb1ba925f194329.zip |
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 <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/oe-git-proxy')
-rwxr-xr-x | scripts/oe-git-proxy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/oe-git-proxy b/scripts/oe-git-proxy index 48734556a1..24732829fb 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 |