summaryrefslogtreecommitdiff
path: root/share/bash/template/template.sh.tera
diff options
context:
space:
mode:
Diffstat (limited to 'share/bash/template/template.sh.tera')
-rw-r--r--share/bash/template/template.sh.tera14
1 files changed, 1 insertions, 13 deletions
diff --git a/share/bash/template/template.sh.tera b/share/bash/template/template.sh.tera
index da748be..12d72ea 100644
--- a/share/bash/template/template.sh.tera
+++ b/share/bash/template/template.sh.tera
@@ -163,20 +163,8 @@ scenario_{{ loop.index }}() {
{% endfor %}
#############################################################################
-# Make the environment minimal.
-
-# Write to stdout the names of all environment variables, one per
-# line. Handle also cases where the value of an environment variable
-# contains newlines.
-envnames()
-{
- env -0 | sed -z 's/^\([^=]\+\)=.*$/\1/' | tr '\0' '\n'
-}
+# Update the environment
-# Unset all environment variables. At the beginning of each scenario,
-# some additional ones will be set to the per-scenario directory.
-unset $(envnames)
-export PATH=/bin:/usr/bin
export SHELL=/bin/sh
# Include any configured environment variables