diff --git a/functions/self_update.sh b/functions/self_update.sh index 98a3e19e..b7b3e884 100644 --- a/functions/self_update.sh +++ b/functions/self_update.sh @@ -2,10 +2,11 @@ args=("$@") self_update() { +branch="ignore-file" git fetch &> /dev/null 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..." git reset --hard -q git pull --force -q