diff options
author | 2017-01-26 04:08:50 +0000 | |
---|---|---|
committer | 2017-01-26 04:08:50 +0000 | |
commit | c6832d3c95e2a363874c49e46cb82f39c31bbbe6 (patch) | |
tree | 21d3f2ec61c3cedd21052e98d9c314b52890e786 | |
parent | Spacing and use arithmetic test (diff) | |
download | wireguard-openbsd-c6832d3c95e2a363874c49e46cb82f39c31bbbe6.tar.xz wireguard-openbsd-c6832d3c95e2a363874c49e46cb82f39c31bbbe6.zip |
No need to escape '.' in shell patterns - it has no special meaning.
OK aja@
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index b808b7778ab..7f915b8730b 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.87 2017/01/26 03:55:25 rpe Exp $ +# $OpenBSD: syspatch.sh,v 1.88 2017/01/26 04:08:50 rpe Exp $ # # Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -276,7 +276,7 @@ _MIRROR=$(while read _line; do _line=${_line%%#*}; [[ -n ${_line} ]] && _MIRROR="${_MIRROR}/syspatch/${_KERNV[0]}/$(machine)" (($(sysctl -n hw.ncpufound) > 1)) && _BSDMP=true || _BSDMP=false -_OSrev=${_KERNV[0]%\.*}${_KERNV[0]#*\.} +_OSrev=${_KERNV[0]%.*}${_KERNV[0]#*.} _PDIR="/var/syspatch" _TMP=$(mktemp -d -p /tmp syspatch.XXXXXXXXXX) |