git: make git-filter-repo option also upgrade existing installation
This commit is contained in:
parent
1dab836d5e
commit
7f508b9ce0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue