refactor: improve script readability and maintainability in recalculate-patches.sh and remove-failed-jobs.sh

This commit is contained in:
mr. M 2025-03-30 10:05:54 +02:00
parent 3f2334a3ad
commit f8b6b05a25
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 21 additions and 22 deletions

View file

@ -18,9 +18,8 @@ find src -type f -name "*.patch" | while read -r patch_file; do
npm run export ${new_file} &
done
for job in `jobs -p`
do
echo $job
for job in $(jobs -p); do
echo $job
wait $job || let "FAIL+=1"
done

View file

@ -1,11 +1,11 @@
#!/bin/bash
gh_bulk_delete_workflow_runs() {
local repo=$1
local repo=zen-browser/$1
# Ensure the repo argument is provided
if [[ -z "$repo" ]]; then
echo "Usage: gh_bulk_delete_workflow_runs <owner/repo>"
echo "Usage: gh_bulk_delete_workflow_runs <repo>"
return 1
fi