summaryrefslogtreecommitdiff
path: root/setup.ps1
blob: 6f5144177f7dbcca12bbfbc3a8864cba093df311 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Setup documents repo
if (Test-Path "docs/Documents/.git") {
    Push-Location "docs/Documents"
    git fetch origin main
    git reset --hard origin/main
    Pop-Location
} else {
    git clone https://github.com/JustEnoughVCS/Documents.git docs/Documents
}

# Hide .cargo, .github and .temp directories before build
if (Test-Path .cargo) {
    attrib +h .cargo
}
if (Test-Path .github) {
    attrib +h .github
}
if (Test-Path .temp) {
    attrib +h .temp
}