From adced97c439dc3be5008802d6decb09f3c10fc26 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Sun, 24 Nov 2024 05:06:58 -0600 Subject: [PATCH] Make install_starship() idempotent --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4954cf7..b2a1dfa 100755 --- a/install.sh +++ b/install.sh @@ -178,7 +178,9 @@ install_makedeb_prebuilt_packages() { # interactive install_starship() { - curl -sS https://starship.rs/install.sh | sh + if ! test -f "$(command -v starship)"; then + curl -sS https://starship.rs/install.sh | sh + fi } function install_packages() {