diff --git a/site/build/build.sh b/site/build/build.sh index ba397b5..f81e8ba 100755 --- a/site/build/build.sh +++ b/site/build/build.sh @@ -1,7 +1,7 @@ #!/bin/bash # Put all available languages here, except "en". Separated by spaces -TRANSLATIONS="ca de el es fr it nl tr zh_tw" +TRANSLATIONS="ca de el es fr it nl pt tr zh_tw" basedir="${0%/*}/.." cd "$basedir" @@ -25,18 +25,18 @@ else hugo status=$? - + (( tries++ )) - + if [[ $status != 0 && $tries -le 2 ]]; then echo "Build error with exit status $status on try $tries. Try again now" elif [[ $status != 0 && $tries -gt 2 ]]; then echo "Build failed 3 times in a row. Don't try again." exit 1 fi - + done - + ## After successfully building the website, we set the AWS credentials and uplodad ## everything to our AWS s3 bucket. ##