Broken juliaup installation

Julia on our linux server stopped working. On some snooping around I found this weird path in the juliaup managed section of .profile:

cat .profile
[[ -r ~/.bash_profile ]] && . ~/.bash_profile


# >>> juliaup initialize >>>

# !! Contents within this block are managed by juliaup !!

case ":$PATH:" in
    *:/home/krcools/.julia/juliaup/.juliaup-backup-1YtvrL/old:*)
        ;;

    *)
        export PATH=/home/krcools/.julia/juliaup/.juliaup-backup-1YtvrL/old${PATH:+:${PATH}}
        ;;
esac

Can anyone provide some insight in how and when this path is changed to a backup location and how to recover from this?

Probably unrelated to this but I first noticed when playing around with code tunnel.

There were a couple of problems with juliaup in the past days. I’d recommend deleting that entry and also ~/.juliaup and simply reinstall it.

It started somewhere here Out of sudden: "command not found: julia" · Issue #1513 · JuliaLang/juliaup · GitHub and since then I helped students and colleagues fix downstream issues like partially written “juliaup initialize” blocks (seems like you are also affected?)