From dfe6245aaa6035d87b726a6adde7814a03461668 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:42:22 -0400 Subject: [PATCH] (bash) fix unintentional setting url to blank this is related to the clone repo function --- bash/.bashrc.arch | 3 --- 1 file changed, 3 deletions(-) diff --git a/bash/.bashrc.arch b/bash/.bashrc.arch index 200f4bb..aa60fdb 100644 --- a/bash/.bashrc.arch +++ b/bash/.bashrc.arch @@ -145,10 +145,8 @@ fcd() { cl() { local url=$1 local ghq_dir="$HOME/ghq" - local argc=$# local project_name="" local repository_name="" - local url="" # extract project name if [[ $url =~ git@git(lab|hub)\.com:([^/]+)/([^/]+)\.git ]]; then @@ -175,7 +173,6 @@ cl() { # check if directory for project exists or not local project_dir="${ghq_dir}/${namespace}/${repository_name}" - echo $project_dir if [[ ! -d $project_dir ]]; then mkdir -p $project_dir fi