diff --git a/bin/install b/bin/install index f469fbe..5288abc 100755 --- a/bin/install +++ b/bin/install @@ -33,7 +33,7 @@ function install() { local bin_install_path="${install_path}/bin" local platform - platform=$(uname -s) + platform=$(uname -s | tr "[:upper:]" "[:lower:]") local arch arch=$(uname -m) @@ -44,7 +44,7 @@ function install() { local download_url local checksum_url - local repo="hidetatz/kubecolor" + local repo="kubecolor/kubecolor" local download_filename="kubecolor_${version}_${platform}_${arch}.tar.gz" local checksum_filename="checksums.txt" diff --git a/bin/list-all b/bin/list-all index 16af3ab..0ad9c68 100755 --- a/bin/list-all +++ b/bin/list-all @@ -22,7 +22,7 @@ function sort_versions() { LC_ALL=C sort -t. -k 1,1 -k 2,2n -k 3,3n -k 4,4n -k 5,5n | awk '{print $2}' } -repo="hidetatz/kubecolor" +repo="kubecolor/kubecolor" releases_path=https://api.github.com/repos/${repo}/releases gh_curl "${releases_path}" | grep -oE 'tag_name": "v.{1,15}",' | sed 's/tag_name\": \"v//;s/\",//' | filter_versions | sort_versions | xargs echo