Преглед на файлове

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>
Peter Kjellerstedt преди 8 години
родител
ревизия
c01e61d8b7
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      scripts/oe-git-proxy

+ 1 - 0
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