Skip to content
Snippets Groups Projects
Commit a0e882f1 authored by Samuel Henrique's avatar Samuel Henrique Committed by Demian Katz
Browse files

solr.sh shellcheck tweaks (#770)

- Just some minor changes to avoid parameter expansion; I know that they are very unlikelly considering the script will run on specific conditions, but I think it's better to explicitly avoid this situation.
parent 01c885e8
Branches
Tags
No related merge requests found
...@@ -36,7 +36,7 @@ usage() ...@@ -36,7 +36,7 @@ usage()
# Set VUFIND_HOME # Set VUFIND_HOME
if [ -z "$VUFIND_HOME" ] if [ -z "$VUFIND_HOME" ]
then then
VUFIND_HOME=`dirname $0` VUFIND_HOME=$(dirname "$0")
fi fi
if [ -z "$SOLR_HOME" ] if [ -z "$SOLR_HOME" ]
...@@ -65,4 +65,4 @@ then ...@@ -65,4 +65,4 @@ then
fi fi
export SOLR_LOGS_DIR=$SOLR_LOGS_DIR export SOLR_LOGS_DIR=$SOLR_LOGS_DIR
$SOLR_BIN/solr $1 -p $SOLR_PORT -s $SOLR_HOME -m $SOLR_HEAP -a "-Dsolr.log=$SOLR_LOGS_DIR" "$SOLR_BIN/solr" "$1" -p "$SOLR_PORT" -s "$SOLR_HOME" -m "$SOLR_HEAP" -a "-Dsolr.log=$SOLR_LOGS_DIR"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment