mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
feat: [CDE-182]: Fixing clone check. (#2259)
* feat: [CDE-182]: Fixing clone check.
This commit is contained in:
parent
d159df6b7b
commit
bed2659e03
@ -19,8 +19,8 @@ if ! command -v git >/dev/null 2>&1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Clone the repository only if it doesn't exist
|
||||
if [ ! -d "$repo_name" ]; then
|
||||
# Clone the repository inside the working directory if it doesn't exist
|
||||
if [ ! -d ".git" ]; then
|
||||
echo "Cloning the repository..."
|
||||
git clone "$repo_url" --branch "$branch" .
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user