ewx: (geek)
[personal profile] ewx
=== modified file 'scripts/setup.in'
--- scripts/setup.in    2008-01-19 12:28:31 +0000
+++ scripts/setup.in    2008-03-29 15:24:01 +0000
@@ -220,32 +220,32 @@
 case $os in
 Mac )
   # Apple don't seem to believe in creating a user as a discrete operation
-  if dscl / -read /Groups/$group >/dev/null 2>&1; then
+  if dscl . -read /Groups/$group >/dev/null 2>&1; then
     echo "$group group already exists"
   else
     echo "Creating $group group"
-    gids=$(dscl / -list /Groups PrimaryGroupID|awk '{print $2}')
+    gids=$(dscl . -list /Groups PrimaryGroupID|awk '{print $2}')
     gid=$(pick $gids)
     echo "(picked gid $gid)"

(etc etc). Amusingly this means their own example is now broken.

Last batch of ranting about Apple's hopeless approach to user creation.

November 2025

S M T W T F S
      1
2345678
91011121314 15
1617 181920 2122
23242526272829
30      

Most Popular Tags

Expand Cut Tags

No cut tags