]> git.lizzy.rs Git - rust.git/commitdiff
Maybe fix `deploy.sh`
authormcarton <cartonmartin+git@gmail.com>
Tue, 19 Jul 2016 20:27:39 +0000 (22:27 +0200)
committermcarton <cartonmartin+git@gmail.com>
Tue, 19 Jul 2016 20:27:39 +0000 (22:27 +0200)
.github/deploy.sh

index 15b14e64a78dcd1356b81f39cb753d3facd9dfc3..98b61ca7b52d527df3d571ea973d325eec09ff74 100755 (executable)
@@ -44,7 +44,8 @@ cd out
 git config user.name "Travis CI"
 git config user.email "travis@ci.invalid"
 
-if [ -z "$(git diff --exit-code)" ]; then
+git diff --exit-code
+if [ $? != 1 ]; then
     echo "No changes to the output on this push; exiting."
     exit 0
 fi