Skip to content

Commit

Permalink
Merge pull request #28 from FederAndInk/feature/create-path-in-overrides
Browse files Browse the repository at this point in the history
allows adding a specific file in a folder by creating the folder first in overridesFolder
  • Loading branch information
NielsPilgaard authored Sep 1, 2022
2 parents 03ed031 + 0814a59 commit 131246e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modpack-uploader.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ function New-ClientFiles {
Write-Host "Adding " -ForegroundColor Cyan -NoNewline
Write-Host $_ -ForegroundColor Blue -NoNewline
Write-Host " to client files." -ForegroundColor Cyan
$destinationFolder = "$overridesFolder/$_" | Split-Path
if (!(Test-Path -Path $destinationFolder)) {
New-Item $destinationFolder -Type Directory
}
Copy-Item -Path $_ -Destination "$overridesFolder/$_" -Recurse
}

Expand Down

0 comments on commit 131246e

Please sign in to comment.