Stop keeping track of installed software

This commit is contained in:
Manuel Thalmann 2024-07-20 03:32:53 +02:00
parent 4ecfcfc6f3
commit 675db97522
2 changed files with 1 additions and 17 deletions
scripts/Common/Scripts

View file

@ -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