diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 2c57133..4b48961 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -62,8 +62,9 @@ INSTALL_RMM() { echo -en "${idsCL[LightYellow]}Paste the Linux Server URL provided from the Download Agent screen: ${idsCL[Default]}" read -e RMMURL wget "${RMMURL}" -O /tmp/rmminstall - TOKEN="TOKEN=$(echo ${RMMURL} | awk -F 'TKN' '{print $2}' | awk -F '/RUN' '{print $1}')" - ${TOKEN} bash /tmp/rmminstall + TOKEN="$(echo ${RMMURL} | awk -F 'TKN' '{print $2}' | awk -F '/RUN' '{print $1}')" + CMD="TOKEN=${TOKEN} bash /tmp/rmminstall" + eval ${CMD} rm -f /tmp/rmminstall echo -e "\n${idsCL[Green]}RMM has been installed${idsCL[Default]}"