mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-08 10:39:59 +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,8 +18,7 @@ find src -type f -name "*.patch" | while read -r patch_file; do
|
||||||
npm run export ${new_file} &
|
npm run export ${new_file} &
|
||||||
done
|
done
|
||||||
|
|
||||||
for job in `jobs -p`
|
for job in $(jobs -p); do
|
||||||
do
|
|
||||||
echo $job
|
echo $job
|
||||||
wait $job || let "FAIL+=1"
|
wait $job || let "FAIL+=1"
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
gh_bulk_delete_workflow_runs() {
|
gh_bulk_delete_workflow_runs() {
|
||||||
local repo=$1
|
local repo=zen-browser/$1
|
||||||
|
|
||||||
# Ensure the repo argument is provided
|
# Ensure the repo argument is provided
|
||||||
if [[ -z "$repo" ]]; then
|
if [[ -z "$repo" ]]; then
|
||||||
echo "Usage: gh_bulk_delete_workflow_runs <owner/repo>"
|
echo "Usage: gh_bulk_delete_workflow_runs <repo>"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue