Fixing bug.

This commit is contained in:
Adsooi 2021-12-29 20:11:17 +01:00
parent bb25c6e7a8
commit a06ddabdc4
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160

3
oop.sh
View file

@ -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