mirror of
https://github.com/automazeio/ccpm.git
synced 2025-10-09 13:41:06 +03:00
Enhance cleanup process after cloning by removing .gitignore along with .git and install directory
This commit is contained in:
@@ -8,8 +8,9 @@ git clone %REPO_URL% %TARGET_DIR%
|
||||
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
echo Clone successful. Removing .git directory...
|
||||
rmdir /s /q .git
|
||||
rmdir /s /q install
|
||||
rmdir /s /q .git 2>nul
|
||||
rmdir /s /q install 2>nul
|
||||
del /q .gitignore 2>nul
|
||||
echo Git directory removed. Repository is now untracked.
|
||||
) else (
|
||||
echo Error: Failed to clone repository.
|
||||
|
||||
@@ -8,7 +8,7 @@ git clone "$REPO_URL" "$TARGET_DIR"
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Clone successful. Removing .git directory..."
|
||||
rm -rf .git install
|
||||
rm -rf .git .gitignore install
|
||||
echo "Git directory removed. Repository is now untracked."
|
||||
else
|
||||
echo "Error: Failed to clone repository."
|
||||
|
||||
Reference in New Issue
Block a user