change self-update from beta to main

This commit is contained in:
Heavybullets8 2022-07-29 19:15:50 +00:00 committed by GitHub
parent d6478da3eb
commit dd598adf60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,7 @@ args=("$@")
self_update() { self_update() {
git fetch &> /dev/null git fetch &> /dev/null
echo "🅂 🄴 🄻 🄵 🅄 🄿 🄳 🄰 🅃 🄴" echo "🅂 🄴 🄻 🄵 🅄 🄿 🄳 🄰 🅃 🄴"
# TODO: change beta to main once testing is complete if git diff --name-only origin/main | grep -qs ".sh" ; then
if git diff --name-only origin/beta | 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
@ -25,4 +24,4 @@ else
echo -e "HeavyScript is already the latest version\n" echo -e "HeavyScript is already the latest version\n"
fi fi
} }
export -f self_update export -f self_update