From 391ba0c92dae0b6b2223aa024d93e1b0d1df7b9c Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 20 Jul 2024 03:32:53 +0200 Subject: [PATCH] Stop keeping track of installed software --- scripts/Common/Scripts/software.fish | 14 +------------- scripts/Common/Software/git/main.fish | 4 ---- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/scripts/Common/Scripts/software.fish b/scripts/Common/Scripts/software.fish index 9c8e99f0..6c3ae551 100644 --- a/scripts/Common/Scripts/software.fish +++ b/scripts/Common/Scripts/software.fish @@ -1,10 +1,5 @@ #!/bin/env fish begin - set -a installed - - function getSWName - end - function installSW end @@ -13,16 +8,9 @@ begin function runInstaller -a action if [ -z "$action" ] || [ "$action" = "install" ] - set -a installed (getSWName) installSW $argv[2..] else if [ "$action" = "configure" ] - if [ -z (getSWName) ] || contains (getSWName) $installed - configureSW $argv[2..] - else - printf %s%s\n \ - "$(tput setaf 3)Warning:$(tput sgr0) " \ - "$(getSWName) does not seem to be installed -- Skipping" - end + configureSW $argv[2..] end end end diff --git a/scripts/Common/Software/git/main.fish b/scripts/Common/Software/git/main.fish index 1e2b3415..ce394058 100644 --- a/scripts/Common/Software/git/main.fish +++ b/scripts/Common/Software/git/main.fish @@ -3,10 +3,6 @@ begin set -l dir (status dirname) source "$(status dirname)/../../Scripts/software.fish" - function getSWName - echo "git" - end - function configureSW -S -V dir -a scope name source "$dir/../../Scripts/config.fish" set -l root