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