This commit is contained in:
2024-09-30 20:36:28 -05:00
parent 99d8fbdddc
commit c3cb143c11
3 changed files with 23 additions and 22 deletions

6
run.sh
View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# MediaManager Loader
# Media/VPN Manager Loader
source /opt/idssys/defaults/colors.inc
source /opt/idssys/defaults/default.inc
@@ -47,9 +47,9 @@ if ([ "${1}" == "update" ] && [ -z ${2+x} ]) || [ "${1}" == "setup" ] || [ "${1}
if [ "`git log --pretty=%H ...refs/heads/${GBRANCH}^ | head -n 1`" != "`git ls-remote origin -h refs/heads/${GBRANCH} |cut -f1`" ]; then
if [ "${2}" != "q" ]; then
echo -en "\e[1A";
echo -e "${idsCL[LightCyan]}Updating MediaManager...${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}Updating Media/VPN Manager...${idsCL[Default]}"
else
echo -e "${idsCL[LightCyan]}Updating MediaManager...${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}Updating Media/VPN Manager...${idsCL[Default]}"
fi
git fetch origin ${GBRANCH} >/dev/null 2>&1
git reset --hard origin/${GBRANCH} >/dev/null 2>&1