From 126704f33b0875a9af80d214511a93baf8589953 Mon Sep 17 00:00:00 2001 From: cperciva Date: Tue, 29 Sep 2009 16:26:09 +0000 Subject: Special-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE". Tripped over by: too many people to count MFC after: 1 month --- usr.sbin/freebsd-update/freebsd-update.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.sbin/freebsd-update') diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh index 2eacca8..372add2 100644 --- a/usr.sbin/freebsd-update/freebsd-update.sh +++ b/usr.sbin/freebsd-update/freebsd-update.sh @@ -284,6 +284,9 @@ config_TargetRelease () { else return 1 fi + if echo ${TARGETRELEASE} | grep -qE '^[0-9.]+$'; then + TARGETRELEASE="${TARGETRELEASE}-RELEASE" + fi } # Define what happens to output of utilities -- cgit v1.1