kontena / chpharos

Pharos version switcher
https://get.pharos.sh/
Apache License 2.0
3 stars 4 forks source link

Unknown argument -A when installing pharos #32

Closed Sh4d1 closed 5 years ago

Sh4d1 commented 6 years ago

When I execute: chpharos install 1.3.1 I get:

Downloading 'pharos-cluster' (23854176 bytes) from https://get.pharos.sh/versions/download/pharos-cluster-linux-amd64-1.3.1 ..               
###################################################################################################################################### 100.0%
Verifying download SHA256 checksum.. OK                                                                                                      
Downloading 'kubectl' (55400930 bytes) from https://storage.googleapis.com/kubernetes-release/release/v1.11.1/bin/linux/amd64/kubectl ..     
###################################################################################################################################### 100.0%
Verifying download SHA256 checksum.. OK                                                                                                      
Unknown argument -A                                                                                                                          
error: installation failed, use: chpharos list-remote to get a list of available versions.

It is because https://github.com/kontena/chpharos/blob/8d51fdf077deea933ec78a38db8a9e509fbe02c1/share/chpharos/chpharos.sh#L394 uses ls instead of /usr/bin/ls. In my case ls is an alias of exa which does not have a -A option.