Skip to content
This repository has been archived by the owner on Dec 8, 2024. It is now read-only.

Create path if it does not already exist #62

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions millw.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ $MILL_USER_CACHE_DIR = Join-Path -Path $Env:LOCALAPPDATA -ChildPath 'mill'

$MILL_DOWNLOAD_PATH = $Env:MILL_DOWNLOAD_PATH ?? @(Join-Path -Path ${MILL_USER_CACHE_DIR} -ChildPath 'download')

if (-not (Test-Path -Path $MILL_DOWNLOAD_PATH)) {
New-Item -Path $MILL_DOWNLOAD_PATH -ItemType Directory | Out-Null
}

if ($null -eq $MILL_VERSION) {
Write-Warning -Message 'No mill version specified.'
Write-Warning -Message "You should provide a version via '.mill-version' file or --mill-version option."
Expand Down
Loading