Skip to content

Commit

Permalink
fix for pipefail
Browse files Browse the repository at this point in the history
since we use pipefail the previous did not work
  • Loading branch information
bernt-matthias committed Dec 15, 2023
1 parent fcc0286 commit 0fd5575
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,9 @@ if [ "$MODE" == "lint" ]; then
mapfile -t REPO_ARRAY < repository_list.txt
for DIR in "${REPO_ARRAY[@]}"; do
if [ "$WORKFLOWS" != "true" ]; then
planemo shed_lint --tools --ensure_metadata --urls --report_level "$REPORT_LEVEL" --fail_level "$FAIL_LEVEL" --recursive "$DIR" "${ADDITIONAL_PLANEMO_OPTIONS[@]}" | tee -a lint_report.txt
(planemo shed_lint --tools --ensure_metadata --urls --report_level "$REPORT_LEVEL" --fail_level "$FAIL_LEVEL" --recursive "$DIR" "${ADDITIONAL_PLANEMO_OPTIONS[@]}" | tee -a lint_report.txt) || lint_fail=true
else
planemo workflow_lint --report_level "$REPORT_LEVEL" --fail_level "$FAIL_LEVEL" "$DIR" "${ADDITIONAL_PLANEMO_OPTIONS[@]}" | tee -a lint_report.txt
fi
if [ "${PIPESTATUS[0]}" -ne 0 ]; then
lint_fail=true
(planemo workflow_lint --report_level "$REPORT_LEVEL" --fail_level "$FAIL_LEVEL" "$DIR" "${ADDITIONAL_PLANEMO_OPTIONS[@]}" | tee -a lint_report.txt) || lint_fail=true
fi
done
# Check if each changed tool is in the list of changed repositories
Expand Down

0 comments on commit 0fd5575

Please sign in to comment.