diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2017-04-30 13:41:11 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2017-04-30 13:41:11 +0000 |
commit | cf987a11b3c8bc82e4e467c23b78db93c12cd5ff (patch) | |
tree | 834ae67502847da571d2d3b1432d81e07b10a971 /usr.sbin/syspatch/syspatch.sh | |
parent | 9677cd160068c81899802ad8c77c0879d451b880 (diff) |
Tweak error message when running on an unsupported release.
Diffstat (limited to 'usr.sbin/syspatch/syspatch.sh')
-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 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} ]] |