X-Git-Url: https://arthur.barton.de/gitweb/?p=usertools.macosx.git;a=blobdiff_plain;f=useradd.macosx.sh;h=653a63b539557cb6ded0944db47151d5117ce929;hp=1081c796905a41261e063460dac3afd101f8b33f;hb=780e7950309e0b670e470685d41d3af24677140f;hpb=f25d5fd300a01b9f8b0b0627ea0d228d5a322276;ds=sidebyside diff --git a/useradd.macosx.sh b/useradd.macosx.sh index 1081c79..653a63b 100755 --- a/useradd.macosx.sh +++ b/useradd.macosx.sh @@ -43,8 +43,8 @@ sw_vers -productName 2>/dev/null | grep "Mac OS X" >/dev/null 2>&1 [ $? -eq 0 ] || Abort "This script requires Mac OS X!" epoch=`sw_vers -productVersion | cut -d'.' -f1` major=`sw_vers -productVersion | cut -d'.' -f2` -if [ $epoch -ne 10 -o $major -ne 5 ]; then - Abort "This script requires Mac OS X 10.5.x Leopard!" +if [ $epoch -ne 10 -o $major -lt 5 -o $major -gt 6 ]; then + Abort "This script requires Mac OS X 10.5.x or 10.6.x!" fi # Defaults