diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2022-10-14 11:57:07 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2022-10-14 11:57:07 +0300 |
commit | bf1969187ef3bf257973abf54f3328d5392115a3 (patch) | |
tree | a03abb3a3afbd9966a8122c6c394ed969e0d3db0 /lib | |
parent | 4ec0a1eaf204e2dae77b29fcd4b1039919d8a692 (diff) |
Notify when removing an existing repository
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/build_site.rake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/tasks/build_site.rake b/lib/tasks/build_site.rake index b93478c2..f8e242bc 100644 --- a/lib/tasks/build_site.rake +++ b/lib/tasks/build_site.rake @@ -36,6 +36,7 @@ task :clone_repositories do # if Dir.exist?(product['project_dir']) if ENV['CI'] || ENV['REMOVE_BEFORE_CLONE'] + puts "#{product['project_dir']} already exists. Removing it..." FileUtils.rm_rf(product['project_dir']) else abort("\n#{TaskHelpers::COLOR_CODE_RED}ERROR: Failed to remove #{product['repo']}. To force remove it, use REMOVE_BEFORE_CLONE=true#{TaskHelpers::COLOR_CODE_RESET}") |