add branch variable

This commit is contained in:
Heavybullets8 2022-08-08 18:56:56 -06:00
parent 17fa578eb4
commit edb437b718

View File

@ -2,10 +2,11 @@
args=("$@") args=("$@")
self_update() { self_update() {
branch="ignore-file"
git fetch &> /dev/null git fetch &> /dev/null
echo "🅂 🄴 🄻 🄵" echo "🅂 🄴 🄻 🄵"
echo "🅄 🄿 🄳 🄰 🅃 🄴" echo "🅄 🄿 🄳 🄰 🅃 🄴"
if git diff --name-only origin/main | grep -qs ".sh" ; then if git diff --name-only origin/$branch | grep -qs ".sh" ; then
echo "Found a new version of HeavyScript, updating myself..." echo "Found a new version of HeavyScript, updating myself..."
git reset --hard -q git reset --hard -q
git pull --force -q git pull --force -q