fix clone function behavior with public urls

This commit is contained in:
MorganGeek 2020-06-30 11:09:26 +02:00
parent 7ad5884835
commit 1d378225a5

View File

@ -304,7 +304,8 @@ function gitpushallremote {
done
}
function clone {
local folder=$(echo $1 | cut -d'/' -f2 | cut -d'.' -f1)
local folder=$(echo $1 | \grep -Eo '[a-zA-Z_-]+.git$' | cut -d'.' -f1)
echo "$folder"
gcls "$1"
cd "$folder"
copyhooks