We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 121011e commit 472c36cCopy full SHA for 472c36c
1 file changed
pgp-verify-jar/create-bump-prs.sh
@@ -1,6 +1,6 @@
1
#!/bin/bash
2
-
3
set -euo pipefail
+IFS=$'\n\t'
4
5
cd "$(\dirname "${0}")"
6
@@ -11,14 +11,14 @@ if [ -f .bump.csv.bak ]; then
11
fi
12
csv="$(\cat .bump.csv.bak)"
13
\rm -f .bump.csv.bak
14
- while IFS="," read -r p v1 v2 l1 l2; do
+ while IFS=',' read -r p v1 v2 l1 l2; do
15
b="${p}-${v2//[\~\:]/-}"
16
\git switch --create "${b}"
17
\perl -i -p -e "s|\Q${l1}\E|${l2}|g" Dockerfile
18
\git add Dockerfile
19
\git commit -S -m "build(deps): bump ${p} from ${v1} to ${v2}"
20
echo "Please review and push commit in branch \"${b}\". Waiting..."
21
- while \git status | \grep -Fq "Your branch is ahead"; do
+ while [ "$(git rev-list --count --left-only '@{u}...HEAD')" -gt 0 ]; do
22
\sleep 1
23
done
24
\gh pr create -f -l build -l dependencies
0 commit comments