Skip to content

Commit

Permalink
update ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
dorien-er committed Jul 11, 2024
1 parent 023c6ce commit 9cf340a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/multiqc/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ IFS=";" read -ra inputs <<< $par_input

if [[ -n "$par_include_modules" ]]; then
include_modules=""
IFS="," read -ra incl_modules <<< $par_include_modules
IFS=";" read -ra incl_modules <<< $par_include_modules
for i in "${incl_modules[@]}"; do
include_modules+="--include $i "
done
Expand All @@ -47,7 +47,7 @@ fi

if [[ -n "$par_exclude_modules" ]]; then
exclude_modules=""
IFS="," read -ra excl_modules <<< $par_exclude_modules
IFS=";" read -ra excl_modules <<< $par_exclude_modules
for i in "${excl_modules[@]}"; do
exclude_modules+="--exclude $i"
done
Expand All @@ -56,7 +56,7 @@ fi

if [[ -n "$par_ignore_analysis" ]]; then
ignore=""
IFS="," read -ra ignore_analysis <<< $par_ignore_analysis
IFS=";" read -ra ignore_analysis <<< $par_ignore_analysis
for i in "${ignore_analysis[@]}"; do
ignore+="--ignore $i "
done
Expand All @@ -65,7 +65,7 @@ fi

if [[ -n "$par_ignore_samples" ]]; then
ignore_samples=""
IFS="," read -ra ign_samples <<< $par_ignore_samples
IFS=";" read -ra ign_samples <<< $par_ignore_samples
for i in "${ign_samples[@]}"; do
ignore_samples+="--ignore-samples $i"
done
Expand Down

0 comments on commit 9cf340a

Please sign in to comment.