Skip to content
Snippets Groups Projects
Commit c1b055c1 authored by schmittu's avatar schmittu :beer:
Browse files

prepare_notebooks.sh now does not affecgt existing notebooks

parent a5414cc1
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,21 @@
set -e
# we have inplace changes we don't want to spoil to # "real" branches.
# we 1. determine current branch,
# 2. setup error handler to switch back to previous branch in all casses
# 3. create a new branch
OLD_BRANCH=$(/usr/local/bin/git branch --show-current)
WORK_BRANCH=setup_euler_temp_branch
cleanup() {
echo CLEANUP
git checkout ${OLD_BRANCH}
git branch -D ${WORK_BRANCH}
}
trap cleanup 0
git checkout -b ${WORK_BRANCH}
# files to include for installation:
NOTEBOOKS=??_*.ipynb
......@@ -47,4 +62,3 @@ done
popd >/dev/null
echo
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment