diff options
author | cperciva <cperciva@FreeBSD.org> | 2009-09-29 16:26:09 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2009-09-29 16:26:09 +0000 |
commit | 126704f33b0875a9af80d214511a93baf8589953 (patch) | |
tree | 9c66d4fb1fa9e94b6a8082524bf79bc4942d7fa5 /usr.sbin/freebsd-update | |
parent | 56606ddda10a0c7ec87a4bde79c3e949fcbc82f3 (diff) | |
download | FreeBSD-src-126704f33b0875a9af80d214511a93baf8589953.zip FreeBSD-src-126704f33b0875a9af80d214511a93baf8589953.tar.gz |
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
Diffstat (limited to 'usr.sbin/freebsd-update')
-rw-r--r-- | usr.sbin/freebsd-update/freebsd-update.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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 |