This commit is contained in:
parent
5d371d0885
commit
231f368968
2 changed files with 8 additions and 1 deletions
2
.util.sh
2
.util.sh
|
@ -3,7 +3,7 @@
|
||||||
update_github_tag() {
|
update_github_tag() {
|
||||||
local repo=$1
|
local repo=$1
|
||||||
|
|
||||||
ver=`curl -s https://api.github.com/repos/${repo}/tags | jq -r '.[0].name' | cut -c2-`
|
ver=`curl -Ls https://api.github.com/repos/${repo}/tags | jq -r '.[0].name' | cut -c2-`
|
||||||
echo $ver
|
echo $ver
|
||||||
sed -i "s/pkgver=.*/pkgver=${ver}/" PKGBUILD
|
sed -i "s/pkgver=.*/pkgver=${ver}/" PKGBUILD
|
||||||
}
|
}
|
||||||
|
|
7
k3s-bin/update.sh
Executable file
7
k3s-bin/update.sh
Executable file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
source ../.util.sh
|
||||||
|
|
||||||
|
update_github_tag rancher/k3s
|
||||||
|
|
||||||
|
update_pkg
|
Loading…
Add table
Reference in a new issue