From 18bc74bc96cbbbd20b2a3685d2bcdf41c18d6f36 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 23 Feb 2024 18:56:23 +0000 Subject: [PATCH] match more flags --- api/tacticalrmm/core/agent_linux.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/tacticalrmm/core/agent_linux.sh b/api/tacticalrmm/core/agent_linux.sh index d17c2785..3b159216 100755 --- a/api/tacticalrmm/core/agent_linux.sh +++ b/api/tacticalrmm/core/agent_linux.sh @@ -137,7 +137,7 @@ Uninstall() { RemoveOldAgent } -if [ $# -ne 0 ] && [ $1 == 'uninstall' ]; then +if [ $# -ne 0 ] && [[ $1 =~ ^(uninstall|-uninstall|--uninstall)$ ]]; then Uninstall # Remove the current script rm "$0" @@ -146,9 +146,9 @@ fi while [[ "$#" -gt 0 ]]; do case $1 in - --debug) DEBUG=1 ;; - --insecure) INSECURE=1 ;; - --nomesh) NOMESH=1 ;; + -debug | --debug | debug) DEBUG=1 ;; + -insecure | --insecure | insecure) INSECURE=1 ;; + -nomesh | --nomesh | nomesh) NOMESH=1 ;; *) echo "ERROR: Unknown parameter: $1" exit 1