git/url
This commit is contained in:
parent
d83231c2fc
commit
7b2a026b1e
1 changed files with 2 additions and 2 deletions
|
@ -877,13 +877,13 @@ spcd_git_clone() {
|
|||
local name path url
|
||||
name="$(basename "${1}")"
|
||||
path="${SPCD_DL}/${name}"
|
||||
url="$(spcd_git_url "${1}")"
|
||||
url="$(spcd_f_git_url "${1}")"
|
||||
git clone "${url}" "${path}"
|
||||
echo "${path}"
|
||||
fi
|
||||
}
|
||||
|
||||
spcd_git_url() {
|
||||
spcd_f_git_url() {
|
||||
if [ -n "${1}" ]; then
|
||||
case "${1}" in
|
||||
http*) echo "${1}" ;;
|
||||
|
|
Loading…
Reference in a new issue