-if [ ! -d $DEST/cf ] ; then
- echo "Creating $DEST and the whole directory hierarchy under it."
- mkdir -p $DEST/{cf,db,index,log,tmp}
-fi
+for d in "" cf $SH_EXTRA_RUNDIRS ; do
+ if [ ! -d $DEST/$d ] ; then
+ echo "Creating $DEST/$d"
+ mkdir -p $DEST/$d
+ fi
+done