(bash) update cl

This commit is contained in:
jc 2024-11-06 13:51:43 -05:00
commit 67abf17600

View file

@ -165,6 +165,12 @@ cl() {
domain=$1 domain=$1
repository_name=$2 repository_name=$2
fi fi
if [[ $# -eq 3 ]]; then
# it has been given a domain, namespace and repository name
domain=$1
namespace=$2
repository_name=$3
fi
url="git@git$domain.com:$namespace/$repository_name.git" url="git@git$domain.com:$namespace/$repository_name.git"
else else
echo -e "$ERROR Invalid URL format" echo -e "$ERROR Invalid URL format"