From 8e4a1b0f818fda957d7c29c8002fb52c2febdd60 Mon Sep 17 00:00:00 2001 From: Stefan Feuerhahn Date: Thu, 18 Jun 2020 11:10:06 +0200 Subject: [PATCH] added quotes around in bash scripts to allow for white spaces in parameter paths --- bin/openiec61850-console-client | 2 +- bin/openiec61850-console-server | 2 +- bin/openiec61850-gui-client | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/openiec61850-console-client b/bin/openiec61850-console-client index 8181d7e..8e47a71 100755 --- a/bin/openiec61850-console-client +++ b/bin/openiec61850-console-client @@ -25,7 +25,7 @@ cd "$SAVED" >/dev/null CLASSPATH=$(JARS=("$APP_HOME"/"$JARS_LOCATION"/*.jar); IFS=:; echo "${JARS[*]}") -for i in $@; do +for i in "$@"; do if [[ $i == -D* ]]; then SYSPROPS="$SYSPROPS $i"; else diff --git a/bin/openiec61850-console-server b/bin/openiec61850-console-server index 3fa4b99..32851fc 100755 --- a/bin/openiec61850-console-server +++ b/bin/openiec61850-console-server @@ -24,7 +24,7 @@ cd "$SAVED" >/dev/null CLASSPATH=$(JARS=("$APP_HOME"/"$JARS_LOCATION"/*.jar); IFS=:; echo "${JARS[*]}") -for i in $@; do +for i in "$@"; do if [[ $i == -D* ]]; then SYSPROPS="$SYSPROPS $i"; else diff --git a/bin/openiec61850-gui-client b/bin/openiec61850-gui-client index b4ccec7..95ae155 100755 --- a/bin/openiec61850-gui-client +++ b/bin/openiec61850-gui-client @@ -25,7 +25,7 @@ cd "$SAVED" >/dev/null CLASSPATH=$(JARS=("$APP_HOME"/"$JARS_LOCATION"/*.jar); IFS=:; echo "${JARS[*]}") -for i in $@; do +for i in "$@"; do if [[ $i == -D* ]]; then SYSPROPS="$SYSPROPS $i"; else