Fixing pinot-admin script to parse env var PLUGINS_INCLUDE
@@ -117,8 +117,8 @@ if [ -z "$PLUGINS_CLASSPATH" ] ; then
fi
if [ -d "$PLUGINS_DIR" ] ; then
if [ -n "$PLUGINS_INCLUDE" ] ; then
- IFS=';' echo "$PLUGINS_INCLUDE" | read -ra PLUGINS_ARR
- for PLUGIN_JAR in "${PLUGINS_ARR[@]}"; do
+ export IFS=";"
+ for PLUGIN_JAR in $PLUGINS_INCLUDE; do
PLUGIN_JAR_PATH=$(find "$PLUGINS_DIR" -path \*/"$PLUGIN_JAR"/"$PLUGIN_JAR"-\*.jar)
if [ -n "$PLUGINS_CLASSPATH" ] ; then
PLUGINS_CLASSPATH=$PLUGINS_CLASSPATH:$PLUGIN_JAR_PATH
@@ -126,6 +126,7 @@ if [ -z "$PLUGINS_CLASSPATH" ] ; then
PLUGINS_CLASSPATH=$PLUGIN_JAR_PATH
fi
done
+ unset IFS
else
PLUGIN_JARS=$(find "$PLUGINS_DIR" -name \*.jar)
for PLUGIN_JAR in $PLUGIN_JARS ; do
