mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Update update.sh
This commit is contained in:
parent
7071d3997f
commit
1c75fe792a
1 changed files with 4 additions and 2 deletions
|
|
@ -1,14 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
echo "Working directory not clean"
|
||||
echo "Working directory is not clean"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git pull
|
||||
|
||||
read -r -d "\n" TAG_NAME RELEASE_NAME <<< "$(curl -sSf "https://api.github.com/repos/ruffle-rs/ruffle/releases?per_page=1" | jq -r ".[0] | .tag_name, .name")" || true
|
||||
|
||||
sed -e "s/^pkgver=.*/pkgver=${TAG_NAME//-/.}/" \
|
||||
|
|
@ -24,3 +25,4 @@ echo "Updating to $RELEASE_NAME..."
|
|||
updpkgsums
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
git commit -am "Update to $RELEASE_NAME"
|
||||
git push
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue