mirror of
https://github.com/apotdevin/thunderhub.git
synced 2024-11-19 09:50:03 +01:00
fix: fetch upstream before comparing (#61)
This commit is contained in:
parent
92cadf5a6d
commit
358dc3760a
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# fetch latest master
|
||||
echo "Checking for changes upstream ..."
|
||||
git fetch
|
||||
UPSTREAM=${1:-'@{u}'}
|
||||
LOCAL=$(git rev-parse @)
|
||||
REMOTE=$(git rev-parse "$UPSTREAM")
|
||||
@ -8,9 +10,7 @@ if [ $LOCAL = $REMOTE ]; then
|
||||
TAG=$(git tag | sort -V | tail -1)
|
||||
echo "You are up-to-date on version" $TAG
|
||||
else
|
||||
# fetch latest master
|
||||
echo "Pulling latest changes..."
|
||||
git fetch
|
||||
git pull -p
|
||||
|
||||
# install deps
|
||||
|
Loading…
Reference in New Issue
Block a user