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() {
|
||||
varName=$1
|
||||
prop=$2
|
||||
val="${@:4}"
|
||||
if [ "$3" == "=" ]; then
|
||||
eval "_${varName}_properties[$prop]=\"${@:4}\""
|
||||
eval "_${varName}_properties[$prop]=\"\$val\""
|
||||
else
|
||||
eval "echo \${_${varName}_properties[$prop]}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue