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-23 09:52:55 +0100 |
commit | c035f3575b2df66f7068d5e73a361ec17a8aec98 (patch) | |
tree | d107aba1547c9077b3371de9e1d74fa302c11040 | |
parent | bbe06b443bc6dcd845feac65a8ca43151ffc4b44 (diff) | |
download | poky-c035f3575b2df66f7068d5e73a361ec17a8aec98.tar.gz |
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")
(From OE-Core rev: c01e61d8b79d644880415986bdb1ba925f194329)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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() { | |||
53 | 53 | ||
54 | # Determine the mask bitlength | 54 | # Determine the mask bitlength |
55 | BITS=${CIDR##*/} | 55 | BITS=${CIDR##*/} |
56 | [ "$BITS" != "$CIDR" ] || BITS=32 | ||
56 | if [ -z "$BITS" ]; then | 57 | if [ -z "$BITS" ]; then |
57 | return 1 | 58 | return 1 |
58 | fi | 59 | fi |