From 4686767a902a894e832b7854c36dd7eaa39dbb4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sat, 13 Apr 2024 22:21:25 +0200 Subject: [PATCH] Added function for installing rust --- .local/bin/Update-pkg | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.local/bin/Update-pkg b/.local/bin/Update-pkg index 7baad41..0ae0e59 100755 --- a/.local/bin/Update-pkg +++ b/.local/bin/Update-pkg @@ -293,6 +293,14 @@ function install_kubernetes() { fi } +function install_rust() { + if command_exists rustc; then + rustup update + else + curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh + fi +} + function main() { command_start update_pip command_start install_neovim_module_for_python @@ -320,6 +328,7 @@ function main() { command_start install_speedtest command_start install_gh_cli command_start install_kubernetes + command_start install_rust command_start update }