clone
This commit is contained in:
parent
2b950472ed
commit
da24f0ccd8
1 changed files with 6 additions and 5 deletions
|
@ -775,11 +775,12 @@ spcd_clean_cache() {
|
||||||
|
|
||||||
spcd_git_clone() {
|
spcd_git_clone() {
|
||||||
if [ -n "${1}" ]; then
|
if [ -n "${1}" ]; then
|
||||||
spcd_gc__name="$(basename "${1}")"
|
local name path url
|
||||||
spcd_gc__path="${SPCD_DL}/${spcd_gc__name}"
|
name="$(basename "${1}")"
|
||||||
spcd_gc__url="$(spcd_git_url "${1}")"
|
path="${SPCD_DL}/${name}"
|
||||||
git clone "${spcd_gc__url}" "${spcd_gc__path}"
|
url="$(spcd_git_url "${1}")"
|
||||||
echo "${spcd_gc__path}"
|
git clone "${url}" "${path}"
|
||||||
|
echo "${path}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue