Skip to content
Snippets Groups Projects
Commit 15328815 authored by Christian Engwer's avatar Christian Engwer
Browse files

fixed error in fix_and_assign

[[Imported from SVN: r4747]]
parent 5c48f34e
No related branches found
No related tags found
No related merge requests found
......@@ -213,14 +213,14 @@ eval_control() {
# $2 value
#
fix_variable_name() {
if ! check_modname $name; then
echo "ERROR: error in assignment. $name is not a valid variabel name." > /dev/stderr
fi
echo "$@" | tr '-' '_'
}
fix_and_assign() {
local name="$1"
if ! check_modname $name; then
echo "ERROR: error in assignment. $name is not a valid variabel name." > /dev/stderr
fi
shift 1
export $name=$(fix_variable_name $@)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment