Merge pull request #1191 from OLIMEX/fix_eval

Fix argument parsing
This commit is contained in:
Igor Pečovnik 2018-12-19 10:42:08 +01:00 committed by GitHub
commit 31146cd2de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ for i in "$@"; do
parameter=${i%%=*}
value=${i##*=}
display_alert "Command line: setting $parameter to" "${value:-(empty)}" "info"
eval $parameter=$value
eval $parameter=\"$value\"
fi
done