From 7a8c6aec7b9982c79d302588fbfee0e24eec3df5 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 15 Oct 2018 23:06:06 -0500 Subject: [PATCH] Update run.sh --- run.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 2c3c7da..0f0283b 100755 --- a/run.sh +++ b/run.sh @@ -1,6 +1,8 @@ #!/usr/bin/env bash # UbUpdate - Ubuntu Update Scripts Loader +source /opt/LinUPx/settings.conf + cd /opt/LinUPx echo "" @@ -9,10 +11,15 @@ if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" = "`git ls-remote else echo -e "\e[93m\e[1mnot up to date\e[21m, updating now...\e[0m" sleep 1 + # git -c http.sslVerify=false pull git fetch origin master git reset --hard origin/master - source /opt/LinUPx/settings.conf + + git reflog expire --expire=now --all + git repack -ad # Remove dangling objects from packfiles + git prune # Remove dangling loose objects + echo "" echo -e "\e[92m\e[1mLinUPx update completed\e[0m" fi