Skip to content

Commit

Permalink
#73: fixe for load_properties in bash (#74)
Browse files Browse the repository at this point in the history
#68: fixed
  • Loading branch information
hohwille authored Apr 2, 2019
1 parent 3e9e0a5 commit 987758f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion scripts/src/main/resources/scripts/environment-project
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ function load_properties() {
then
unset ${key}
else
if [ "${value:0:1}" != "(" ]
then
value=\"${value}\"
fi
eval ${key}=${value}
#echo "${key}=${!key}"
if [ "${export}" = "true" ]
then
export ${key}
Expand Down
9 changes: 7 additions & 2 deletions scripts/src/main/resources/scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,11 @@ function doLoadProperties() {
then
unset ${key}
else
if [ "${value:0:1}" != "(" ]
then
value=\"${value}\"
fi
eval ${key}=${value}
#echo "${key}=${!key}"
if [ "${export}" = "true" ]
then
export ${key}
Expand All @@ -614,7 +617,9 @@ function doLoadProperties() {

if [ -z "${DEVON_IDE_HOME}" ]
then
DEVON_IDE_HOME="`dirname ${BASH_SOURCE:-$0}`/.."
cd "$(dirname ${BASH_SOURCE:-$0})/.."
DEVON_IDE_HOME="${PWD}"
cd - > /dev/null
echo "DEVON_IDE_HOME variable set to ${DEVON_IDE_HOME}"
fi
doLoadProperties "${DEVON_IDE_HOME}/scripts/devon.properties"
Expand Down

0 comments on commit 987758f

Please sign in to comment.