Skip to content

Commit

Permalink
Unset BASH_ENV (#377)
Browse files Browse the repository at this point in the history
This is to avoid sourcing misbehaving bashrc files.
  • Loading branch information
ktf authored Oct 20, 2016
1 parent d5b8ab2 commit b2a2d1d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aliBuild
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ def doMain():
"LC_CTYPE", "LC_MESSAGES", "LC_MONETARY",
"LC_NUMERIC", "LC_TIME", "LC_ALL"]:
os.environ[x] = "C"
# We need to unset BASH_ENV because in certain environments (e.g.
# NERSC) this is used to source a (non -e safe) bashrc, effectively
# breaking aliBuild.
os.environ["BASH_ENV"] = ""
parser = argparse.ArgumentParser(epilog="For complete documentation please refer to https://alisw.github.io/alibuild")
parser.add_argument("action", choices=["init", "build", "clean", "version", "analytics"], help="what alibuild should do")
parser.add_argument("pkgname", nargs="?", help="One (or more) of the packages in `alidist'")
Expand Down

0 comments on commit b2a2d1d

Please sign in to comment.