7 Replies Latest reply: Feb 12, 2013 7:46 AM by twtwtw
Roger Holden Level 3 Level 3 (945 points)

Hi

 

I have a simple shell script using Rsync to sync iTunes on my Mac to my NAS.

 

The NAS shows up in the Finder in the shared section and gets mounted to /Volumes/Public/Shared Music.

 

I just want to add to the script syntax to check this is mounted before trying to sync, and if not, try to mount it. However,  can't find any help on conditional shell scripting for checking this sort of thing.

 

Any help much appreciated!

 

Thanks


MacBook Pro 2.4 Ghz 13", Mac OS X (10.6.6)