A few minor fixes to copyparty.
This commit is contained in:
+14
-1
@@ -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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user