From 6112e4ae33841f42bbbe90c3f8e2cda8763de1c3 Mon Sep 17 00:00:00 2001 From: tteckster Date: Wed, 9 Aug 2023 12:26:07 -0400 Subject: [PATCH] Update omada.sh more tweaks --- ct/omada.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ct/omada.sh b/ct/omada.sh index 31d1e3dd..3d41116a 100644 --- a/ct/omada.sh +++ b/ct/omada.sh @@ -56,14 +56,15 @@ if [[ ! -d /opt/tplink ]]; then msg_error "No ${APP} Installation Found!"; exit; latest_url=$(curl -fsSL "https://www.tp-link.com/us/support/download/omada-software-controller/" | grep -o 'https://.*x64.deb' | head -n1) latest_version=$(basename "${latest_url}" | sed -e 's/.*ller_//;s/_Li.*//') if [ -z "${latest_version}" ]; then - echo "It seems that the server (tp-link.com) might be down. Please try again at a later time." + msg_error "It seems that the server (tp-link.com) might be down. Please try again at a later time." exit fi installed_version=$(dpkg -l | grep omada | awk '{print $3}') if [ "v${installed_version}" = "${latest_version}" ]; then - echo "Installed version (v${installed_version}) is the same as the latest version (${latest_version})." - echo "Omada Controller is already up to date" + msg_info "Installed version (v${installed_version}) is the same as the latest version (${latest_version})" + sleep 2 + msg_ok "Omada Controller is already up to date" exit else echo -e "Updating Omada Controller to ${latest_version}"