Upload New File

This commit is contained in:
2017-10-04 23:24:01 -05:00
parent ec76f27852
commit e20a4f49ad

23
run.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# UbUpdate - Ubuntu Update Scripts Loader
cd /opt/ubuntu-upscripts
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
echo -e "\e[92m\e[1mUp to date\e[0m"
sleep 1
./upscripts.sh $1
else
echo -e "\e[93m\e[1mnot up to date\e[21m, updating now...\e[0m"
sleep 1
git pull
echo ""
echo -e "\e[92m\e[1mupdate completed\e[0m"
sleep 1
./upscripts.sh $1
fi
#else
# ./upscripts.sh $1
#fi
exit 0