tcl: avoid readonly local in package hook
If a path with a space were added to TCLLIBPATH, _addToTclLibPath would attempt to mutate the tclPkg local and fail.
This commit is contained in:
parent
49db5c9de6
commit
927251e781
@ -4,7 +4,7 @@
|
||||
|
||||
# Add a directory to TCLLIBPATH, provided that it exists
|
||||
_addToTclLibPath() {
|
||||
local -r tclPkg="$1"
|
||||
local tclPkg="$1"
|
||||
if [ -z "$tclPkg" ]; then
|
||||
return
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user