Clone 'bare' dots package names from git.00dani.me/dot, rather than GitHub
This commit is contained in:
parent
3632e5cdcd
commit
316108268f
1 changed files with 3 additions and 3 deletions
|
@ -25,9 +25,9 @@
|
|||
'clone-one'() {
|
||||
local url=$1
|
||||
local package=${${url##*/}%.git}
|
||||
# Simple package names are fetched from my GitHub repos.
|
||||
[[ $url != */* ]] && url=$GITHUB_USER/dot-$package
|
||||
# user/repo packages are fetched from that user's repos.
|
||||
# Simple package names are fetched from my Gitea dot repos.
|
||||
[[ $url != */* ]] && url=https://git.00dani.me/dot/$package
|
||||
# user/repo packages are fetched from that user's GitHub repos.
|
||||
[[ $url != *:* ]] && url=https://github.com/$url
|
||||
if [[ -d $DOTFILES/$package ]]; then
|
||||
echo "Looks like you already have $package cloned." >&2
|
||||
|
|
Loading…
Reference in a new issue