(bash) update cl
This commit is contained in:
parent
3194885e64
commit
67abf17600
1 changed files with 6 additions and 0 deletions
|
|
@ -165,6 +165,12 @@ cl() {
|
|||
domain=$1
|
||||
repository_name=$2
|
||||
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"
|
||||
else
|
||||
echo -e "$ERROR Invalid URL format"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue