Skip to content

Commit 0f47e82

Browse files
Merge pull request #567 from gaurab-khanal/version
🐛 Fix install script to determine latest version
2 parents 8e5b7ac + 13ddf91 commit 0f47e82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install-kubeflex.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ get_arch_type() {
5454
}
5555

5656
get_latest_version() {
57-
curl -sL https://github.com/kubestellar/kubeflex/releases/latest | grep "</h1>" | tail -n 1 | sed -e 's/<[^>]*>//g' | xargs
57+
curl -s https://api.github.com/repos/kubestellar/kubeflex/releases/latest | grep '"tag_name"' | cut -d '"' -f 4
5858
}
5959

6060
get_full_path() {

0 commit comments

Comments
 (0)