Administrivia

Don't use finish in sourced admin programs
This commit is contained in:
rocky
2024-02-17 15:11:09 -05:00
parent f94100d24c
commit 9f9f6de983
5 changed files with 5 additions and 21 deletions

View File

@@ -18,12 +18,7 @@ function checkout_version {
return $?
}
# FIXME put some of the below in a common routine
function finish {
cd $owd
}
owd=$(pwd)
trap finish EXIT
export PATH=$HOME/.pyenv/bin/pyenv:$PATH
@@ -35,4 +30,4 @@ cd $fulldir/..
git pull
rm -v */.python-version || true
finish
cd $owd