From: Lott, Christopher (cl778h) Date: Mon, 20 Jan 2020 23:13:08 +0000 (-0500) Subject: Add quotes around variable to silence shellcheck X-Git-Tag: v0.50.0~10 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=4e5148bea90808186cdda4154e62e4297d706270;p=releng%2Fglobal-jjb.git Add quotes around variable to silence shellcheck Modify maven-javadoc-generate.sh to put double quotes around use of environment variable to silence shellcheck warning that I missed. No functional change to behavior. Change-Id: Icfd01adcff8ae03cf43fefd3751427ee2d0dc2b6 Signed-off-by: Lott, Christopher (cl778h) --- diff --git a/shell/maven-javadoc-generate.sh b/shell/maven-javadoc-generate.sh index 0f1cac3c..4a66eece 100644 --- a/shell/maven-javadoc-generate.sh +++ b/shell/maven-javadoc-generate.sh @@ -23,7 +23,7 @@ export MAVEN_OPTS # use absolute path as workaround for javadoc:aggregate # silent failure on relative path, for example "-f ." -maven_dir_abs=$(readlink -f $MAVEN_DIR) +maven_dir_abs=$(readlink -f "$MAVEN_DIR") # Disable SC2086 because we want to allow word splitting for $MAVEN_* parameters. # shellcheck disable=SC2086