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
|
local name path url
|
||||||
name="$(basename "${1}")"
|
name="$(basename "${1}")"
|
||||||
path="${SPCD_DL}/${name}"
|
path="${SPCD_DL}/${name}"
|
||||||
url="$(spcd_git_url "${1}")"
|
url="$(spcd_f_git_url "${1}")"
|
||||||
git clone "${url}" "${path}"
|
git clone "${url}" "${path}"
|
||||||
echo "${path}"
|
echo "${path}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
spcd_git_url() {
|
spcd_f_git_url() {
|
||||||
if [ -n "${1}" ]; then
|
if [ -n "${1}" ]; then
|
||||||
case "${1}" in
|
case "${1}" in
|
||||||
http*) echo "${1}" ;;
|
http*) echo "${1}" ;;
|
||||||
|
|
Loading…
Reference in a new issue