fixed: watchexec pre-release
This commit is contained in:
parent
c7c2611222
commit
175b580170
|
@ -2,8 +2,8 @@
|
||||||
|
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
latest_release() {
|
latest_watchexec_release() {
|
||||||
curl -sSL "https://api.github.com/repos/$1/releases/latest" | jq -r .tag_name
|
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
|
mkdir /tmp/riju-work
|
||||||
|
@ -72,7 +72,7 @@ apt-get install -y $(sed 's/#.*//' <<< "${packages}")
|
||||||
|
|
||||||
pip3 install poetry
|
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"
|
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
|
apt-get install -y ./watchexec-*.deb
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue