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:
Andrew Brooks 2021-05-11 10:27:51 -05:00
parent 49db5c9de6
commit 927251e781

View File

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