davidB / kubectl-view-allocations

kubectl plugin to list allocations (cpu, memory, gpu,... X utilization, requested, limit, allocatable,...)

Home Page:https://crates.io/crates/kubectl-view-allocations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getLatest.sh doesn't work properly with Ubuntu

lucidyan opened this issue · comments

lsb_release - a

Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.3 LTS
Release:	18.04
Codename:	bionic

uname -a

Linux home-pc 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Comand:

curl https://raw.githubusercontent.com/davidB/kubectl-view-allocations/master/scripts/getLatest.sh | sh

Output:

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3025  100  3025    0     0  17899      0 --:--:-- --:--:-- --:--:-- 17899
sh: 29: local: https://github.com/davidB/kubectl-view-allocations/releases/download/0.6.5/kubectl-view-allocations_0.6.5-x86_64-unknown-linux-gnu.tar.gz: bad variable name
Did not find a release for your system: linux x86_64
Fail to install davidB/kubectl-view-allocations

Thanks for reporting. the current solution is to pipe the curl command to bash (and not sh). I provided more info into the commit message if you're interested.

curl https://raw.githubusercontent.com/davidB/kubectl-view-allocations/master/scripts/getLatest.sh | sh