moving to a better name than FEISTY_MEOW_GENERATED for chewed scripts folder. too...
[feisty_meow.git] / scripts / system / osx_cd_mounter.sh
index a83aa871b72f53802a6b703aefa17af78f2cc19a..7f5cc8ceea9b1dd739aec00038f99944be8c3560 100644 (file)
@@ -3,7 +3,7 @@
 # keeps trying to mount the cd on a mac mini to overcome
 # a new bug in itunes seen as of osx leopard upgrade.
 
-source $FEISTY_MEOW_SCRIPTS/core/date_stringer.sh
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
 
 mountpoint=/Volumes/mounty_cd
 
@@ -11,7 +11,7 @@ echo "$(date_stringer): starting cd mounter..."
 
 while true; do
   if [ ! -d $mountpoint ]; then
-    mkdir $mountpoint
+    mkdir -p $mountpoint
   fi
 
   found_device=$(mount|grep -i cddafs)