PortValhalla/scripts/Common/Scripts/software.fish

30 lines
694 B
Fish
Raw Normal View History

#!/bin/env fish
begin
2024-07-19 23:21:25 +00:00
set -a installed
function getSWName
echo "PortValhalla"
end
function installSW
end
function configureSW
end
function runInstaller -a action
if [ -z "$action" ] || [ "$action" = "install" ]
2024-07-19 23:21:25 +00:00
set -a installed (getSWName)
2024-07-15 11:56:27 +00:00
installSW $argv[2..]
2024-07-14 08:10:04 +00:00
else if [ "$action" = "configure" ]
2024-07-19 23:21:25 +00:00
if 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
end
end
end