From f8267a78a0a2ccab16854420fefa401983540f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 23 Nov 2023 09:23:19 +0100 Subject: [PATCH] Added new functions in Update-pkg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .local/bin/Update-pkg | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.local/bin/Update-pkg b/.local/bin/Update-pkg index cf757a1..e819559 100755 --- a/.local/bin/Update-pkg +++ b/.local/bin/Update-pkg @@ -184,6 +184,11 @@ function install_awscli() { pip3 install awscli $PIPEXTPRE } +function install_aws_adfs() { + # Install aws-adfs + pip3 install aws-adfs $PIPEXTPRE +} + function install_ytdlp() { # Install yt-dlp pip3 install yt-dlp $PIPEXTPRE @@ -244,12 +249,22 @@ function install_speedtest() { function install_gh_cli() { if [[ "$(uname)" == "Darwin" ]]; then - brew install github/gh/gh + brew install gh elif [[ "$(uname -r)" =~ "gentoo" ]]; then sudo emerge dev-util/github-cli fi } +function install_kubernetes() { + if [[ "$(uname)" == "Darwin" ]]; then + wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl" -O $HOME/.local/bin/kubectl + chmod +x $HOME/.local/bin/kubectl + elif [[ "$(uname -r)" =~ "gentoo" ]]; then + wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -O $HOME/.local/bin/kubectl + chmod +x $HOME/.local/bin/kubectl + fi +} + function main() { command_start update_pip command_start install_neovim_module_for_python @@ -273,8 +288,10 @@ function main() { command_start install_ytdlp command_start install_spotifydl command_start install_awscli + command_start install_aws_adfs command_start install_speedtest command_start install_gh_cli + command_start install_kubernetes command_start update }