mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
chore(): fix git repo check
This commit is contained in:
parent
7af7715f90
commit
eb31e9b2a1
@ -23,9 +23,12 @@ function run {
|
|||||||
# CD in to the site dir to commit updated docs
|
# CD in to the site dir to commit updated docs
|
||||||
cd $SITE_DIR
|
cd $SITE_DIR
|
||||||
|
|
||||||
|
# Add all files to git
|
||||||
|
git add .
|
||||||
|
|
||||||
# if no changes, don't commit
|
# if no changes, don't commit
|
||||||
CHANGED=$(git diff-index --name-only HEAD --)
|
CHANGED=$(git diff-index --name-only HEAD 2>/dev/null | wc -l)
|
||||||
if [ -z "$CHANGED" ];
|
if [ $CHANGED -gt 0 ];
|
||||||
then
|
then
|
||||||
echo "-- No changes detected for the following commit, docs not updated."
|
echo "-- No changes detected for the following commit, docs not updated."
|
||||||
echo "https://github.com/driftyco/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1"
|
echo "https://github.com/driftyco/$CIRCLE_PROJECT_REPONAME/commit/$CIRCLE_SHA1"
|
||||||
|
Loading…
Reference in New Issue
Block a user