diff wrapper.sh @ 83:729738462297 draft

"planemo upload commit c0ffc68aec5836d5b20b543106493056a87edf57"
author rhpvorderman
date Wed, 15 Sep 2021 12:24:06 +0000
parents b6f9a640e098
children 4db34e32dd47
line wrap: on
line diff
--- a/wrapper.sh	Thu Feb 25 10:32:32 2021 +0000
+++ b/wrapper.sh	Wed Sep 15 12:24:06 2021 +0000
@@ -1,5 +1,5 @@
-#!/bin/bash
-#set -e
+#!/usr/bin/env bash
+set -e -o pipefail
 dir="$(cd "$(dirname "$0")" && pwd)"
 input=$1
 method=$2
@@ -22,7 +22,12 @@
 empty_region_filter=${18}
 fast=${19}
 
-mkdir $outdir
+#exec 5> debug_output.txt
+#BASH_XTRACEFD="5"
+#PS4='$(date +%s.%N) $LINENO: '
+#set -x
+
+mkdir -p $outdir
 
 tar -xzf $dir/style.tar.gz -C $outdir
 
@@ -447,7 +452,7 @@
 	echo "---------------- baseline ----------------<br />" >> $log
 	tmp="$PWD"
 
-	mkdir $outdir/baseline
+	mkdir -p $outdir/baseline
 	
 	echo "<center><h1>BASELINe</h1>" >> $output
 	header_substring="Based on CDR1, FR2, CDR2, FR3 (27:27:38:55:65:104:-)"
@@ -557,7 +562,7 @@
 
 	echo "---------------- change-o MakeDB ----------------"
 
-	mkdir $outdir/change_o
+	mkdir -p $outdir/change_o
 
 	tmp="$PWD"