1
Fork 0

git: make git-filter-repo option also upgrade existing installation

This commit is contained in:
Alan Faubert 2024-09-14 07:56:34 -04:00
parent 1dab836d5e
commit 7f508b9ce0

View file

@ -55,7 +55,7 @@ while :; do
wget https://github.com"$(curl --silent https://github.com/dandavison/delta/releases | grep --max-count=1 --only-matching '[^\"]*x86_64-unknown-linux-musl[^\"]*')" --output-document=- | tar --extract --directory ~/.bin/delta --gzip --strip-components=1
;;
git-filter-repo)
[ -d ~/.bin/git-filter-repo ] || { mkdir --parents ~/.bin && git clone https://github.com/newren/git-filter-repo ~/.bin/git-filter-repo; } &&
[ -d ~/.bin/git-filter-repo ] && git -C ~/.bin/git-filter-repo pull || { mkdir --parents ~/.bin && git clone https://github.com/newren/git-filter-repo ~/.bin/git-filter-repo; } &&
2path.sh ~/.bin/git-filter-repo/git-filter-repo
;;
git-scripts)