potiuk commented on a change in pull request #14347:
URL: https://github.com/apache/airflow/pull/14347#discussion_r580612782



##########
File path: scripts/ci/libraries/_initialization.sh
##########
@@ -726,12 +728,8 @@ function 
initialization::get_environment_for_builds_on_ci() {
         export CI_REF="${CI_REF="refs/head/master"}"
     fi
 
-    if [[ ${VERBOSE} == "true" && ${PRINT_INFO_FROM_SCRIPTS} == "true" ]]; then
-        initialization::summarize_build_environment
-    fi
-
     if [[ -z "${LIBRARY_PATH:-}" && -n "${LD_LIBRARY_PATH:-}" ]]; then
-      export LIBRARY_PATH="$LD_LIBRARY_PATH"
+      export LIBRARY_PATH="${LD_LIBRARY_PATH}"

Review comment:
       This is something I learned to always use braces for variables. While 
they are optional, they give clear boundaries. So I add them by default for all 
variables always. I don't even think about it when I do it whenever I am around 
such variable. 
   
   It's also consistent with Google shell guide which we adopted: 
   
   https://google.github.io/styleguide/shellguide.html#variable-expansion
   
   > In order of precedence: Stay consistent with what you find; quote your 
variables; prefer "${var}" over "$var".
   
   > Don’t brace-delimit single character shell specials / positional 
parameters, unless strictly necessary or avoiding deep confusion.
   > Prefer brace-delimiting all other variables.




----------------------------------------------------------------
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]


Reply via email to