You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2023/01/06 02:54:16 UTC

[GitHub] [solr] madrob commented on a diff in pull request #1225: SOLR-9509 Fix problems reported by shellcheck

madrob commented on code in PR #1225:
URL: https://github.com/apache/solr/pull/1225#discussion_r1063055366


##########
solr/bin/solr:
##########
@@ -2153,16 +2160,17 @@ function start_solr() {
   SOLR_JETTY_ADDL_CONFIG="$3"
 
   # define default GC_TUNE
-  if [ -z ${GC_TUNE+x} ]; then # I think this check is backwards?
-      GC_TUNE=('-XX:+UseG1GC' \
+  if [ -z "${GC_TUNE}" ]; then
+      GC_TUNE_ARR=('-XX:+UseG1GC' \

Review Comment:
   I think this will fail if GC_TUNE is unset now? Might not fail in regular operation, but in BATS it might be more strict and complain.



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

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org