Skip to content

Commit

Permalink
dir paths set even when they do not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed Feb 5, 2018
1 parent 3fbd781 commit 4aa544b
Showing 1 changed file with 7 additions and 28 deletions.
35 changes: 7 additions & 28 deletions run_tpc_pipeline_incremental.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,58 +54,37 @@ key=$1
case $key in
-p|--pdf-dir)
shift
if [[ -d $1 ]]
then
PDF_DIR="$1"
fi
PDF_DIR="$1"
shift
;;
-x|--xml-dir)
shift
if [[ -d $1 ]]
then
XML_DIR="$1"
fi
XML_DIR="$1"
shift
;;
-c|--cas1-dir)
shift
if [[ -d $1 ]]
then
CAS1_DIR="$1"
fi
CAS1_DIR="$1"
shift
;;
-C|--cas2-dir)
shift
if [[ -d $1 ]]
then
CAS2_DIR="$1"
fi
CAS2_DIR="$1"
shift
;;
-t|--tmp-dir)
shift
if [[ -d $1 ]]
then
TMP_DIR="$1"
fi
TMP_DIR="$1"
shift
;;
-f|--ftp-dir)
shift
if [[ -d $1 ]]
then
FTP_MNTPNT="$1"
fi
FTP_MNTPNT="$1"
shift
;;
-i|--index-dir)
shift
if [[ -d $1 ]]
then
INDEX_DIR="$1"
fi
INDEX_DIR="$1"
shift
;;
-P|--num-proc)
Expand Down

0 comments on commit 4aa544b

Please sign in to comment.