projects
/
usertools.macosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f25d5fd
)
Support Mac OS X 10.6 as well as 10.5.
author
Alexander Barton
<alex@barton.de>
Mon, 28 Sep 2009 10:53:50 +0000
(12:53 +0200)
committer
Alexander Barton
<alex@barton.de>
Mon, 28 Sep 2009 10:53:50 +0000
(12:53 +0200)
useradd.macosx.sh
patch
|
blob
|
history
diff --git
a/useradd.macosx.sh
b/useradd.macosx.sh
index 1081c796905a41261e063460dac3afd101f8b33f..653a63b539557cb6ded0944db47151d5117ce929 100755
(executable)
--- 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