Skip to content
Snippets Groups Projects
Commit f5f7d47b authored by Erik Schnetter's avatar Erik Schnetter
Browse files

Support Bash "-u" mode

parent c50d6ac9
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ function _spack_pathadd {
fi
# Do the actual prepending here.
eval "_pa_oldvalue=\$${_pa_varname}"
eval "_pa_oldvalue=\${${_pa_varname}:-}"
if [ -d "$_pa_new_path" ] && [[ ":$_pa_oldvalue:" != *":$_pa_new_path:"* ]]; then
if [ -n "$_pa_oldvalue" ]; then
......
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