A few minor fixes to copyparty.

This commit is contained in:
Storm Dragon
2026-04-17 20:29:47 -04:00
parent a5aa2fd63c
commit 3abe0aa011
2 changed files with 91 additions and 16 deletions
+14 -1
View File
@@ -35,8 +35,18 @@ fi
source .includes/functions.sh
source .includes/ui.sh
copyparty_installed() {
pacman -Q copyparty &> /dev/null
}
while true; do
choice="$(menulist "Firewall" "MiniDLNA" "Mumble Server" "Nginx" "Top Speed Server" "Top Speed Console" "Copyparty" "Exit")" || break
menuOptions=("Firewall" "MiniDLNA" "Mumble Server" "Nginx" "Top Speed Server" "Top Speed Console" "Copyparty")
if copyparty_installed; then
menuOptions+=("Show Copyparty Address")
fi
menuOptions+=("Exit")
choice="$(menulist "${menuOptions[@]}")" || break
case "$choice" in
"Firewall")
source .includes/firewall.sh
@@ -59,6 +69,9 @@ while true; do
"Copyparty")
source .includes/copyparty.sh
;;
"Show Copyparty Address")
source .includes/copyparty.sh show-address
;;
"Exit")
break
;;