summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-03-23 17:39:39 +0100
committerUlrich Müller <ulm@gentoo.org>2023-03-26 13:33:38 +0200
commit380cdfe55011c654d07fdf82ff8e0c6264729253 (patch)
tree88d58b3fe7a8facf40ea3f0756bb9b78c4677993 /eclass/java-pkg-simple.eclass
parenthaskell-cabal.eclass: Quote argument of ":" command (diff)
downloadgentoo-380cdfe55011c654d07fdf82ff8e0c6264729253.tar.gz
gentoo-380cdfe55011c654d07fdf82ff8e0c6264729253.tar.bz2
gentoo-380cdfe55011c654d07fdf82ff8e0c6264729253.zip
java-pkg-simple.eclass: Quote argument of ":" command
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'eclass/java-pkg-simple.eclass')
-rw-r--r--eclass/java-pkg-simple.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/java-pkg-simple.eclass b/eclass/java-pkg-simple.eclass
index a1589b025617..929ce68c6c07 100644
--- a/eclass/java-pkg-simple.eclass
+++ b/eclass/java-pkg-simple.eclass
@@ -116,7 +116,7 @@ fi
# @ECLASS_VARIABLE: JAVA_ENCODING
# @DESCRIPTION:
# The character encoding used in the source files.
-: ${JAVA_ENCODING:=UTF-8}
+: "${JAVA_ENCODING:=UTF-8}"
# @ECLASS_VARIABLE: JAVAC_ARGS
# @DEFAULT_UNSET
@@ -148,7 +148,7 @@ fi
# @ECLASS_VARIABLE: JAVA_JAR_FILENAME
# @DESCRIPTION:
# The name of the jar file to create and install.
-: ${JAVA_JAR_FILENAME:=${PN}.jar}
+: "${JAVA_JAR_FILENAME:=${PN}.jar}"
# @ECLASS_VARIABLE: JAVA_BINJAR_FILENAME
# @DEFAULT_UNSET
@@ -161,7 +161,7 @@ fi
# If ${JAVA_MAIN_CLASS} is set, we will create a launcher to
# execute the jar, and ${JAVA_LAUNCHER_FILENAME} will be the
# name of the script.
-: ${JAVA_LAUNCHER_FILENAME:=${PN}-${SLOT}}
+: "${JAVA_LAUNCHER_FILENAME:=${PN}-${SLOT}}"
# @ECLASS_VARIABLE: JAVA_TESTING_FRAMEWORKS
# @DEFAULT_UNSET