From 481f69fb6f87a76ac3c51872990a97575b6b40cc Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Mon, 10 Aug 2009 14:00:47 -0400 Subject: [PATCH] Have update_ucsc.sh.sample add 'chrom' dir to tool-data/shared/ucsc as needed. This empty directory was lost from the repository in the svn to hg conversion. --- cron/updateucsc.sh.sample | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cron/updateucsc.sh.sample b/cron/updateucsc.sh.sample index 31630248517..6e7e2fc0f7f 100644 --- a/cron/updateucsc.sh.sample +++ b/cron/updateucsc.sh.sample @@ -9,8 +9,20 @@ GALAXY=/galaxy/path export PYTHONPATH=${GALAXY}/lib # setup directories -mkdir ${GALAXY}/tool-data/shared/ucsc/new -mkdir ${GALAXY}/tool-data/shared/ucsc/chrom/new +echo "Creating required directories." +DIRS=" +${GALAXY}/tool-data/shared/ucsc/new +${GALAXY}/tool-data/shared/ucsc/chrom +${GALAXY}/tool-data/shared/ucsc/chrom/new +" +for dir in $DIRS; do + if [ ! -d $dir ]; then + echo "Creating $dir" + mkdir $dir + else + echo "$dir already exists, continuing." + fi +done date echo "Updating UCSC shared data tables."