This commit is contained in:
Marc Beninca 2024-08-31 09:26:10 +02:00
parent 2b950472ed
commit da24f0ccd8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -775,11 +775,12 @@ spcd_clean_cache() {
spcd_git_clone() {
if [ -n "${1}" ]; then
spcd_gc__name="$(basename "${1}")"
spcd_gc__path="${SPCD_DL}/${spcd_gc__name}"
spcd_gc__url="$(spcd_git_url "${1}")"
git clone "${spcd_gc__url}" "${spcd_gc__path}"
echo "${spcd_gc__path}"
local name path url
name="$(basename "${1}")"
path="${SPCD_DL}/${name}"
url="$(spcd_git_url "${1}")"
git clone "${url}" "${path}"
echo "${path}"
fi
}