Skip to content

Commit

Permalink
Update script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaspe committed Aug 23, 2024
1 parent 9239468 commit b99876d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fastqc/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
set -eo pipefail

# Check if both outputs are empty, at least one must be passed.
if [[ -z "$par_html" ]] && [[ -z "$par_zip" ]]; then
echo "Error: At least one of the output arguments (--html or --zip) must be passed."
if [[ -z "$par_html" ]] && [[ -z "$par_zip" ]] && [[ -z "$par_summary" ]] && [[ -z "$par_data" ]]; then
echo "Error: At least one of the output arguments (--html, --zip, --summary, and --data) must be passed."
exit 1
fi

Expand Down

0 comments on commit b99876d

Please sign in to comment.