Skip to content

Commit

Permalink
export eups shell function definitions
Browse files Browse the repository at this point in the history
in loadLSST.bash. eups doesn't do this because it wants to be POSIXly
correct, but a script that is explicitly bash is a good place to do
this so our users can use setup and unsetup in their own scripts.
  • Loading branch information
PaulPrice committed Apr 10, 2018
1 parent 3ef088e commit 15c762e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/newinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,8 @@ n8l::generate_loader_bash() {
# Bootstrap EUPS
EUPS_DIR="\${LSST_HOME}/eups/$(n8l::eups_slug)"
source "\${EUPS_DIR}/bin/setups.sh"
export -f setup
export -f unsetup
export EUPS_PKGROOT=\${EUPS_PKGROOT:-$eups_pkgroot}
EOF
Expand Down

0 comments on commit 15c762e

Please sign in to comment.