Update run.sh

This commit is contained in:
2018-04-09 00:24:09 -05:00
parent 7465a9f8e9
commit ed8b03aad8

4
run.sh
View File

@@ -4,14 +4,14 @@
cd /opt/LinUPx
echo ""
#if [ -z "$1" ]; then
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" = "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
if [ "`git -c http.sslVerify=false log --pretty=%H ...refs/heads/master^ | head -n 1`" = "`git -c http.sslVerify=false ls-remote origin -h refs/heads/master |cut -f1`" ]; then
echo -e "\e[92m\e[1mUp to date\e[0m"
sleep 1
./linupx-scripts.sh $1
else
echo -e "\e[93m\e[1mnot up to date\e[21m, updating now...\e[0m"
sleep 1
git pull
git -c http.sslVerify=false pull
echo ""
echo -e "\e[92m\e[1mupdate completed\e[0m"
sleep 1