Fix FreeBSD version detection.
This commit is contained in:
parent
08e3444d17
commit
d7d7cd3f04
2
beadm
2
beadm
|
|
@ -29,7 +29,7 @@ unset LC_ALL
|
||||||
unset LANG
|
unset LANG
|
||||||
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
|
PATH=${PATH}:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin
|
||||||
|
|
||||||
if [ $( uname -r | cut -d '.' -f1 ) -lt 8 ]
|
if [ $( uname -r | cut -d '-' -f1 | cut -d '.' -f1 ) -lt 8 ]
|
||||||
then
|
then
|
||||||
echo "ERROR: beadm works on FreeBSD 8.0 or later"
|
echo "ERROR: beadm works on FreeBSD 8.0 or later"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue