Added files for the portuguese translation
parent
1c21e604e1
commit
6c2850b811
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Put all available languages here, except "en". Separated by spaces
|
# 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%/*}/.."
|
basedir="${0%/*}/.."
|
||||||
cd "$basedir"
|
cd "$basedir"
|
||||||
|
@ -25,18 +25,18 @@ else
|
||||||
|
|
||||||
hugo
|
hugo
|
||||||
status=$?
|
status=$?
|
||||||
|
|
||||||
(( tries++ ))
|
(( tries++ ))
|
||||||
|
|
||||||
if [[ $status != 0 && $tries -le 2 ]]; then
|
if [[ $status != 0 && $tries -le 2 ]]; then
|
||||||
echo "Build error with exit status $status on try $tries. Try again now"
|
echo "Build error with exit status $status on try $tries. Try again now"
|
||||||
elif [[ $status != 0 && $tries -gt 2 ]]; then
|
elif [[ $status != 0 && $tries -gt 2 ]]; then
|
||||||
echo "Build failed 3 times in a row. Don't try again."
|
echo "Build failed 3 times in a row. Don't try again."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
## After successfully building the website, we set the AWS credentials and uplodad
|
## After successfully building the website, we set the AWS credentials and uplodad
|
||||||
## everything to our AWS s3 bucket.
|
## everything to our AWS s3 bucket.
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue