forked from Azure-Samples/azure-servicebus-relay-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cleanup.ps1
24 lines (19 loc) · 765 Bytes
/
cleanup.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
###########################################################
# Start - Initialization - Invocation, Logging etc
###########################################################
$VerbosePreference = "SilentlyContinue"
$ErrorActionPreference = "Stop"
$scriptPath = $MyInvocation.MyCommand.Path
$scriptDir = Split-Path $scriptPath
& "$scriptDir\scripts\init.ps1"
if(-not $?)
{
throw "Initialization failure."
}
###########################################################
# End - Initialization - Invocation, Logging etc
###########################################################
#Try to delete as much as we can
#$ErrorActionPreference = "SilentlyContinue"
$exclusions = @("*.spec", "*.zip")
& "$scriptDir\scripts\cleanup.ps1" "$scriptDir" -Exclusions $exclusions