mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-28 23:37:47 +01:00
modulefile: source shell init script only in mode 'load'
This commit is contained in:
1 parent
06491fde93
commit
c80d57d7b7
1 file changed
+3
-3
+3
-3
@@ -22,7 +22,7 @@ if { [module-info mode load] } {
|
||||
}
|
||||
remove-path C_INCLUDE_PATH "$PREFIX/include"
|
||||
remove-path CPLUS_INCLUDE_PATH "$PREFIX/include"
|
||||
}
|
||||
|
||||
set shell [module-info shell]
|
||||
puts "source \"$PREFIX/init/$shell\""
|
||||
set shell [module-info shell]
|
||||
puts "source \"$PREFIX/init/$shell\""
|
||||
}
|
||||
Reference in new issue
Block a user