diff --git a/defaults.inc b/defaults.inc index 0824388..b4e4461 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,7 @@ #!/usr/bin/env bash # TA-Proxmenu - Proxmox Scripts for TA Use +action="$1" FOLDER='/opt/idssys/ta-proxmenu' VERS='0.2-12142025' diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index abb6715..26ad00e 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -70,8 +70,8 @@ MAIN_MENU() { } -if [ ${1-x} ]; then - case $1 in +if [ ${action-x} ]; then + case $action in update) UPDATE;; esac