Skip to content

Commit 13ddf91

Browse files
committed
use grep for filtering version
Signed-off-by: Gaurab Khanal <khanalgaurab98@gmail.com>
1 parent 9dfb72c commit 13ddf91

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 -s https://api.github.com/repos/kubestellar/kubeflex/releases/latest | jq -r '.tag_name'
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)