Test fichier deploy
This commit is contained in:
parent
92c16ec5e4
commit
b9213586c0
12
deploy.sh
12
deploy.sh
@ -7,8 +7,12 @@ LOCAL=$(git rev-parse @)
|
||||
REMOTE=$(git rev-parse "$UPSTREAM")
|
||||
BASE=$(git merge-base @ "$UPSTREAM")
|
||||
|
||||
if [ $LOCAL = $BASE ]; then
|
||||
git stash
|
||||
git pull
|
||||
npm install
|
||||
if [ $LOCAL = $REMOTE ]; then
|
||||
echo "Up-to-date"
|
||||
elif [ $LOCAL = $BASE ]; then
|
||||
echo "Need to pull"
|
||||
elif [ $REMOTE = $BASE ]; then
|
||||
echo "Need to push"
|
||||
else
|
||||
echo "Diverged"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user