curriculum/deploy.sh

13 lines
206 B
Bash
Raw Normal View History

2019-10-13 14:36:36 +00:00
#!/bin/sh
UPSTREAM=${1:-'@{u}'}
LOCAL=$(git rev-parse @)
REMOTE=$(git rev-parse "$UPSTREAM")
BASE=$(git merge-base @ "$UPSTREAM")
if [ $LOCAL = $BASE ]; then
git stash
git pull
npm install
fi