mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 00:10:00 +02:00
refactor: improve script readability and maintainability in recalculate-patches.sh and remove-failed-jobs.sh
This commit is contained in:
parent
3f2334a3ad
commit
f8b6b05a25
2 changed files with 21 additions and 22 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue