Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Oct 4, 2024
1 parent 78b0c2f commit 0856c5b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tasks/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ tasks:
description: Run linting checks on OSCAL
actions:
- description: Lint OSCAL files
shell:
linux: bash
darwin: bash
cmd: |
for file in $OSCALFILES; do
IFS=',' read -r -a OSCALARRAY <<< "$OSCALFILES"
for file in "${OSCALARRAY[@]}"; do
if [ ! -f "$file" ]; then
echo "⚠️ WARNING: file $file does not exist."
exit 0
fi
done
# shellcheck disable=SC2086
lula tools lint -f $OSCALFILES
lula tools lint -f "$OSCALFILES"
- name: shell
description: Run shellcheck on all Maru tasks, GitHub workflows, and local shell scripts
Expand Down

0 comments on commit 0856c5b

Please sign in to comment.