summaryrefslogtreecommitdiff
path: root/include/midnight_special.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/midnight_special.sh')
-rwxr-xr-xinclude/midnight_special.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/midnight_special.sh b/include/midnight_special.sh
index 5781588..90c3638 100755
--- a/include/midnight_special.sh
+++ b/include/midnight_special.sh
@@ -4,7 +4,9 @@
source /eng/ssb/auto/astroconda/include/host_config.sh
#[[ "$USER" != "" ]] && exec -c $0
-export sm_base="$PWD"
+if [[ -n $sm_run ]]; then
+ export sm_base="$PWD"
+fi
unset $(/usr/bin/env \
| egrep '^(\w+)=(.*)$' \