From edb437b7181c833a56b98b0198e007b0e92ec0b5 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Mon, 8 Aug 2022 18:56:56 -0600 Subject: [PATCH] add branch variable --- functions/self_update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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