modulefile: source shell init script only in mode 'load'

This commit is contained in:
2022-07-01 16:37:39 +02:00
parent 06491fde93
commit c80d57d7b7
+3 -3
View File
@@ -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\""
}