This commit is contained in:
Marc Beninca 2024-09-09 00:00:26 +02:00
parent d83231c2fc
commit 7b2a026b1e
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -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}" ;;