Skip to content

Commit 02209fb

Browse files
committed
update script
1 parent 49ef464 commit 02209fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/update-descriptors.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -euo pipefail
3+
set -euox pipefail
44

55
dir="gcp-api-descriptors"
66
branch=$(git rev-parse --abbrev-ref HEAD)
@@ -10,20 +10,20 @@ rm -rf $dir
1010
echo "Cloning gcp-api-descriptors branch:${branch}"
1111
git clone [email protected]:ComputeSoftware/gcp-api-descriptors.git $dir
1212
cd $dir
13-
git checkout -b ${branch}
14-
git pull origin ${branch}
13+
git checkout "${branch}"
14+
git pull origin "${branch}"
1515
cd ..
1616

1717
echo "Updating descriptor files..."
18-
clojure -A:dev -m update-descriptors $dir
18+
clojure -M:dev -m update-descriptors $dir
1919

2020
cd $dir
2121

2222
if [[ $(git status --porcelain) ]]; then
2323
echo "Changes dectected. Updating descriptors..."
2424
git add -A .
2525
git commit -a -m "Update descriptor files"
26-
git push -u origin ${branch}
26+
git push -u origin "${branch}"
2727
else
2828
echo "No changes to push."
2929
fi

0 commit comments

Comments
 (0)