add branch variable
This commit is contained in:
parent
17fa578eb4
commit
edb437b718
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user