aboutsummaryrefslogtreecommitdiff
path: root/scripts/azure-pipelines/linux/initialize-environment.sh
blob: 82b52bd2e8878b8945827d7738a87937bff0369f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: MIT

# Cleans up the environment to prevent contamination across builds.
if [ ! -d "archives" ]; then
    ln -s /ci/archives archives
fi
if [ ! -d "installed" ]; then
    ln -s /ci/installed installed
fi

rm -rf installed/*
rm -rf buildtrees
rm -rf packages