Skip to content
Snippets Groups Projects
Verified Commit c0569289 authored by Lucas Briese's avatar Lucas Briese
Browse files

chore: fix venv not correctly resetting PS1

parent 474c18d8
No related branches found
No related tags found
1 merge request!14Status endpoint
......@@ -24,6 +24,7 @@ if [ ! -f "$project_dir/venv" ]; then
error "please use for \"source venv\" the git root as working directory. I couldn't find \"$project_dir/venv\""
exit 1
fi
export PS1_OLD="${PS1:-}"
PS1="(OpenCoDE) ${PS1:-}"
info "exporting $(grep -Ece '^[^#=][^#=]*' .env || echo 0) variables from .env"
......@@ -64,6 +65,6 @@ function prod-overview() {
info "reload-venv\treload venv file"
function reload-venv() {
PS1="${PS1:23}" # remove "(OpenCoDE) "
PS1="${PS1_OLD}" # remove "(OpenCoDE) "
source "${project_dir:?}/venv"
}
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

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.