diff --git a/scripts/docs/prepare.sh b/scripts/docs/prepare.sh index 084f36796..7cae3adae 100755 --- a/scripts/docs/prepare.sh +++ b/scripts/docs/prepare.sh @@ -15,9 +15,10 @@ function init { function run { # no need to run on PRs - if [ -z $CI_PULL_REQUEST ] then + if [ -z $CI_PULL_REQUEST ]; then exit 0 fi + if [ ! -d "$SITE_DIR" ]; then echo "checking out" cd ./scripts