sijie commented on a change in pull request #10804:
URL: https://github.com/apache/pulsar/pull/10804#discussion_r644613870
##########
File path: site2/tools/build-site.sh
##########
@@ -34,44 +34,55 @@ if [ "$CROWDIN_DOCUSAURUS_API_KEY" != "UNSET" ]; then
# or current hour is 0-5
# this leads to executing crowdin-upload once per day when website build is
scheduled
# to run with cron expression '0 */6 * * *'
- CURRENT_HOUR=`date +%H`
+ CURRENT_HOUR=$(date +%H)
if [[ "$CROWDIN_UPLOAD" == "1" || $CURRENT_HOUR -lt 6 ]]; then
yarn run crowdin-upload
fi
yarn run crowdin-download
-fi
-# TODO: remove this after figuring out why crowdin removed code tab when
generating translated files
Review comment:
if you are touching this file, can you move all the `cp` commands into a
shell function?
##########
File path: site2/tools/build-site.sh
##########
@@ -34,44 +34,55 @@ if [ "$CROWDIN_DOCUSAURUS_API_KEY" != "UNSET" ]; then
# or current hour is 0-5
# this leads to executing crowdin-upload once per day when website build is
scheduled
# to run with cron expression '0 */6 * * *'
- CURRENT_HOUR=`date +%H`
+ CURRENT_HOUR=$(date +%H)
if [[ "$CROWDIN_UPLOAD" == "1" || $CURRENT_HOUR -lt 6 ]]; then
yarn run crowdin-upload
fi
yarn run crowdin-download
-fi
-# TODO: remove this after figuring out why crowdin removed code tab when
generating translated files
Review comment:
there is nothing related to crowdin. this is just a review comment on
the shell script.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]