Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
16377: back up env to SAGE_ROOT/.orig-env
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed May 19, 2014
1 parent 80e319d commit 8841032
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
*.pyc
/.BUILDSTART
/.orig-env
/dist
/local
/logs
Expand Down
3 changes: 3 additions & 0 deletions src/bin/sage
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ usage_advanced() {
exit 0
}

# Back up enironment
/usr/bin/env >"$SAGE_ROOT"/.orig-env

# Check for '--nodotsage' before sourcing sage-env; otherwise sage-env
# will already have set some environment variables with the old
# setting for DOT_SAGE.
Expand Down

0 comments on commit 8841032

Please sign in to comment.