Mercurial > repos > mingchen0919 > aurora_fasta_importer
changeset 4:a3cd7153451a draft
planemo upload
author | mingchen0919 |
---|---|
date | Tue, 15 May 2018 08:55:31 -0400 |
parents | 2c8c06250531 |
children | 8850e8e60977 |
files | build-and-run-job-scripts.sh |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/build-and-run-job-scripts.sh Tue May 15 08:33:13 2018 -0400 +++ b/build-and-run-job-scripts.sh Tue May 15 08:55:31 2018 -0400 @@ -3,11 +3,8 @@ #========== build and run job 1 script ============ cat >curl-download.sh <<EOF -if [[ $(wc -l <$X_f) -ge 2 ]];then - cp $X_f $X_O -else - curl $(head -1 $X_f) > $X_O -fi +# use the first line as an url and start downloading. If it failed, run the second command. +curl $(head -1 $X_f) > $X_O || cp $X_f $X_O EOF # run job 1 script