summaryrefslogtreecommitdiff
path: root/include/midnight_special.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-08-19 11:21:43 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2016-08-19 11:21:43 -0400
commitc1189149053228204277708cc01037e6c9891d37 (patch)
tree428c25de7334c2df058ef87f846f33f5c0390f3c /include/midnight_special.sh
parenta26ab9064bc34e6695cb1e255522fab3f55deeb8 (diff)
downloadastroconda-control-c1189149053228204277708cc01037e6c9891d37.tar.gz
Rolling updateHEADmaster
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+)=(.*)$' \