Merge pull request #157 from phuchptty/fix_watchexec

Fix watchexec release version
This commit is contained in:
Radon Rosborough 2022-02-28 17:39:18 -08:00 committed by GitHub
commit e157b39522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
set -euxo pipefail
latest_release() {
curl -sSL "https://api.github.com/repos/$1/releases/latest" | jq -r .tag_name
latest_watchexec_release() {
curl -sSL "https://api.github.com/repos/$1/releases" | jq -c -r '[.[] | select(.tag_name | test("^cli-v"))] | first | .tag_name'
}
mkdir /tmp/riju-work
@ -72,7 +72,7 @@ apt-get install -y $(sed 's/#.*//' <<< "${packages}")
pip3 install poetry
ver="$(latest_release watchexec/watchexec | sed 's/^cli-v//')"
ver="$(latest_watchexec_release watchexec/watchexec | sed 's/^cli-v//')"
wget "https://github.com/watchexec/watchexec/releases/download/cli-v${ver}/watchexec-${ver}-x86_64-unknown-linux-gnu.deb"
apt-get install -y ./watchexec-*.deb