Last active
April 10, 2019 05:17
-
-
Save fannheyward/4defad9227d1ee3fea48496c15ff3fbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -uex | |
DIR=XXX | |
cd ${DIR} | |
REV1=$(git rev-parse --verify HEAD) | |
git pull | |
REV2=$(git rev-parse --verify HEAD) | |
test ${REV1} = ${REV2} && echo "already update" && exit | |
yarn build | |
test $? -ne 0 && echo "yarn build error" && exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment