Where am I going wrong with this script???
Hi all,
I'm doing something stupid but can't figure out what - maybe it's jetlag!
Small script to create a sym link to a network share:
#!/bin/bash
zzz= stat -f%Su /dev/console
echo $zzz
ln -s "/volumes/MacServer/Mac Learners" "/Users/$zzz/Desktop/MacLearners"
exit 0
It echos back the corect username for $zzz but does not pass it to the next line to create the alias in the right place. It returns:
invalid location /Users//Desktop/MacLearners
Anybody have enough caffinein their system to fix this?
Xserve, OS X Server