Skip to content

Commit a5c83b0

Browse files
committed
Report local modulefiles dir creation in "use.own"
Fixes #576 Signed-off-by: Xavier Delaruelle <[email protected]>
1 parent ad9a3cf commit a5c83b0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

NEWS.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ Modules 5.6.0 (not yet released)
152152
* Add :subcmd:`describe` sub-command, an alias of :subcmd:`saveshow`
153153
* Add ``--show_hidden`` option, an alias of :option:`--all`
154154
* Add :mfcmd:`haveDynamicMPATH` modulefile command
155+
* Fix ``use.own`` example modulefile to report when creating local modulefiles
156+
directory. (fix issue #576)
155157

156158
.. _Security policy: https://github.com/envmodules/modules/blob/main/SECURITY.md
157159
.. _Modules chat room: https://matrix.to/#/#modules:matrix.org

share/modulefiles/use.own

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ set ownmoddir $HOME/privatemodules
1414
# create directory if necessary
1515
if {[module-info mode load]} {
1616
if {![file exists $ownmoddir]} {
17+
puts stderr "Creating directory '$ownmoddir'"
1718
file mkdir $ownmoddir
1819
set null [open $ownmoddir/null w]
1920
puts $null {#%Module}

0 commit comments

Comments
 (0)