Fixing bug.
This commit is contained in:
parent
bb25c6e7a8
commit
a06ddabdc4
1 changed files with 2 additions and 1 deletions
3
oop.sh
3
oop.sh
|
@ -166,8 +166,9 @@ static_class() {
|
||||||
_accessProperty() {
|
_accessProperty() {
|
||||||
varName=$1
|
varName=$1
|
||||||
prop=$2
|
prop=$2
|
||||||
|
val="${@:4}"
|
||||||
if [ "$3" == "=" ]; then
|
if [ "$3" == "=" ]; then
|
||||||
eval "_${varName}_properties[$prop]=\"${@:4}\""
|
eval "_${varName}_properties[$prop]=\"\$val\""
|
||||||
else
|
else
|
||||||
eval "echo \${_${varName}_properties[$prop]}"
|
eval "echo \${_${varName}_properties[$prop]}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue