Add quotes around variable to silence shellcheck 51/62851/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Mon, 20 Jan 2020 23:13:08 +0000 (18:13 -0500)
committerLott, Christopher (cl778h) <cl778h@att.com>
Mon, 20 Jan 2020 23:13:08 +0000 (18:13 -0500)
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) <cl778h@att.com>
shell/maven-javadoc-generate.sh

index 0f1cac3..4a66eec 100644 (file)
@@ -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