From bb4c9c10214fabc073f8f407378f21032d2cc15d Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Wed, 4 Sep 2019 09:31:47 -0400 Subject: [PATCH] deploy: exit gracefully if there is nothing to commit --- ci/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/deploy.sh b/ci/deploy.sh index 427d655f..5dea176b 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -28,7 +28,7 @@ if [ "${TRAVIS}" == "true" ]; then test git config user.name "BlueRobotics-CI" fi -test git commit -m "update autogenerated files for $(git rev-parse HEAD@{2})" +git commit -m "update autogenerated files for $(git rev-parse HEAD@{2})" || return 0 # deploy if [ ! -z ${TRAVIS_PULL_REQUEST} ] && [ ${TRAVIS_PULL_REQUEST} == "false" ]; then