summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syspatch
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2017-04-30 13:41:10 +0000
committerajacoutot <ajacoutot@openbsd.org>2017-04-30 13:41:10 +0000
commita2aa8c1657687fc8361f4b570934bf68fc43eb25 (patch)
tree5e7721dc83e2a33f67500069a28ade8661e05820 /usr.sbin/syspatch
parentUnifdef KGDB. (diff)
downloadwireguard-openbsd-a2aa8c1657687fc8361f4b570934bf68fc43eb25.tar.xz
wireguard-openbsd-a2aa8c1657687fc8361f4b570934bf68fc43eb25.zip
Tweak error message when running on an unsupported release.
Diffstat (limited to 'usr.sbin/syspatch')
-rw-r--r--usr.sbin/syspatch/syspatch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh
index 42059499cc8..1cd3f2ca8b3 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.94 2017/04/04 21:20:22 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.95 2017/04/30 13:41:10 ajacoutot Exp $
#
# Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -269,7 +269,7 @@ unpriv()
# only run on release (not -current nor -stable)
set -A _KERNV -- $(sysctl -n kern.version |
sed 's/^OpenBSD \([0-9]\.[0-9]\)\([^ ]*\).*/\1 \2/;q')
-((${#_KERNV[*]} > 1)) && sp_err "Unsupported release ${_KERNV[*]}"
+((${#_KERNV[*]} > 1)) && sp_err "Unsupported release: ${_KERNV[0]}${_KERNV[1]}"
_OSrev=${_KERNV[0]%.*}${_KERNV[0]#*.}
[[ -n ${_OSrev} ]]