diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-08-19 11:21:43 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-08-19 11:21:43 -0400 |
commit | c1189149053228204277708cc01037e6c9891d37 (patch) | |
tree | 428c25de7334c2df058ef87f846f33f5c0390f3c /include/midnight_special.sh | |
parent | a26ab9064bc34e6695cb1e255522fab3f55deeb8 (diff) | |
download | astroconda-control-c1189149053228204277708cc01037e6c9891d37.tar.gz |
Diffstat (limited to 'include/midnight_special.sh')
-rwxr-xr-x | include/midnight_special.sh | 4 |
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+)=(.*)$' \ |