Update run.sh
This commit is contained in:
4
run.sh
4
run.sh
@@ -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 "\e[0K\r ${idsCL[LightCyan]}Installing mediamanager updates...${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightCyan]}Updating MediaManager...${idsCL[Default]}"
|
||||
else
|
||||
echo -e "${idsCL[LightCyan]}Installing mediamanager updates...${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightCyan]}Updating MediaManager...${idsCL[Default]}"
|
||||
fi
|
||||
git fetch origin ${GBRANCH} >/dev/null 2>&1
|
||||
git reset --hard origin/${GBRANCH} >/dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user