Skip to content

Commit

Permalink
Update check_ci.sh
Browse files Browse the repository at this point in the history
used find instead of ls as advised by shell linter
  • Loading branch information
TerrenceMcGuinness-NOAA committed Oct 6, 2023
1 parent ac4f632 commit bdba2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/scripts/check_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ for pr in ${pr_list}; do
# Check to see if this PR that was opened by the weekly tests and if so close it if it passed on all platforms
weekly_labels=$(${GH} pr view "${pr}" --repo "${REPO_URL}" --json headRefName,labels,author --jq 'select(.author.login | contains("emcbot")) | select(.headRefName | contains("weekly_ci")) | .labels[].name ') || true
if [[ -n "${weekly_labels}" ]]; then
num_platforms=$(ls -1 ../platforms/config.* | wc -l)
num_platforms=$(find ../platforms -type f -name "config.*")
passed=0
for platforms in ../platforms/config.*; do
machine=$(basename "${platforms}" | cut -d. -f2)
Expand Down

0 comments on commit bdba2a2

Please sign in to comment.