aboutsummaryrefslogtreecommitdiff
path: root/scripts/azure-pipelines/linux
diff options
context:
space:
mode:
authorBilly O'Neal <bion@microsoft.com>2020-05-19 13:43:30 -0700
committerGitHub <noreply@github.com>2020-05-19 13:43:30 -0700
commit3b0080e3b0d395de7551cc2ce1ec89189e539eab (patch)
treed0a6877c62dc90eab4a7ac1d7b9530985522cca9 /scripts/azure-pipelines/linux
parente806b2ed384fce2487562371fb32d9528d0c178a (diff)
downloadvcpkg-3b0080e3b0d395de7551cc2ce1ec89189e539eab.tar.gz
vcpkg-3b0080e3b0d395de7551cc2ce1ec89189e539eab.zip
[vcpkg] Harden file removals and clean directory contents in "CI" inside vcpkg itself. (#11432)
`files.h/files.cpp`: * Add end and else comments to all macros. * Add "remove_all_inside" function which empties a directory without actually deleting the directory. This is necessary to handle the case where the directory is actually a directory symlink. * Change remove_all to use std::remove when VCPKG_USE_STD_FILESYSTEM is set; this will engage POSIX delete support available on current Win10. `commands.ci.cpp`: empty "installed". `*/initialize_environment.*`: No longer clean the directories outside the tool. `ci-step.ps1`: Remove unused console output tee-ing.
Diffstat (limited to 'scripts/azure-pipelines/linux')
-rwxr-xr-xscripts/azure-pipelines/linux/initialize-environment.sh4
1 files changed, 0 insertions, 4 deletions
diff --git a/scripts/azure-pipelines/linux/initialize-environment.sh b/scripts/azure-pipelines/linux/initialize-environment.sh
index 5346345a5..1cbdd3326 100755
--- a/scripts/azure-pipelines/linux/initialize-environment.sh
+++ b/scripts/azure-pipelines/linux/initialize-environment.sh
@@ -6,7 +6,3 @@
if [ ! -d "archives" ]; then
ln -s /archives archives
fi
-
-rm -rf installed
-rm -rf buildtrees
-rm -rf packages/*