Stop keeping track of installed software
This commit is contained in:
parent
4ecfcfc6f3
commit
675db97522
2 changed files with 1 additions and 17 deletions
|
@ -1,10 +1,5 @@
|
||||||
#!/bin/env fish
|
#!/bin/env fish
|
||||||
begin
|
begin
|
||||||
set -a installed
|
|
||||||
|
|
||||||
function getSWName
|
|
||||||
end
|
|
||||||
|
|
||||||
function installSW
|
function installSW
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -13,16 +8,9 @@ begin
|
||||||
|
|
||||||
function runInstaller -a action
|
function runInstaller -a action
|
||||||
if [ -z "$action" ] || [ "$action" = "install" ]
|
if [ -z "$action" ] || [ "$action" = "install" ]
|
||||||
set -a installed (getSWName)
|
|
||||||
installSW $argv[2..]
|
installSW $argv[2..]
|
||||||
else if [ "$action" = "configure" ]
|
else if [ "$action" = "configure" ]
|
||||||
if [ -z (getSWName) ] || contains (getSWName) $installed
|
configureSW $argv[2..]
|
||||||
configureSW $argv[2..]
|
|
||||||
else
|
|
||||||
printf %s%s\n \
|
|
||||||
"$(tput setaf 3)Warning:$(tput sgr0) " \
|
|
||||||
"$(getSWName) does not seem to be installed -- Skipping"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,10 +3,6 @@ begin
|
||||||
set -l dir (status dirname)
|
set -l dir (status dirname)
|
||||||
source "$(status dirname)/../../Scripts/software.fish"
|
source "$(status dirname)/../../Scripts/software.fish"
|
||||||
|
|
||||||
function getSWName
|
|
||||||
echo "git"
|
|
||||||
end
|
|
||||||
|
|
||||||
function configureSW -S -V dir -a scope name
|
function configureSW -S -V dir -a scope name
|
||||||
source "$dir/../../Scripts/config.fish"
|
source "$dir/../../Scripts/config.fish"
|
||||||
set -l root
|
set -l root
|
||||||
|
|
Loading…
Reference in a new issue