Skip to content

Commit fcdbcbd

Browse files
Robert Kudybavsoch
authored andcommitted
Replace 'unset -f' with 'unsetenv' in module templates
1 parent c71a846 commit fcdbcbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shpc/main/modules/templates/docker.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ set inspectCmd "{{ command }} \${PODMAN_OPTS} inspect ${containerPath}"
9292
{% endfor %}
9393
}
9494
if { [ module-info mode remove ] } {
95-
{% for alias in aliases %}{% if alias.name not in wrapper_scripts %} puts stdout "unset -f {{ alias.name }};"{% endif %}
95+
{% for alias in aliases %}{% if alias.name not in wrapper_scripts %} puts stdout "unsetenv {{ alias.name }};"{% endif %}
9696
{% endfor %}
9797
}
9898
} else {

shpc/main/modules/templates/singularity.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ set inspectCmd "singularity \${SINGULARITY_OPTS} inspect \${SINGULARITY_COMMAND_
9898
{% endfor %}
9999
}
100100
if { [ module-info mode remove ] } {
101-
{% for alias in aliases %} {% if alias.name not in wrapper_scripts %} puts stdout "unset -f {{ alias.name }};"{% endif %}
101+
{% for alias in aliases %} {% if alias.name not in wrapper_scripts %} puts stdout "unsetenv {{ alias.name }};"{% endif %}
102102
{% endfor %}
103103
}
104104
} else {

0 commit comments

Comments
 (0)