mirror of
https://github.com/agessaman/meshcore-packet-capture.git
synced 2026-04-20 23:23:37 +00:00
Implement default installation directory handling in installer script
This commit is contained in:
parent
f1b18afb68
commit
6fe093b40e
1 changed files with 5 additions and 0 deletions
|
|
@ -41,6 +41,11 @@ function Start-Installation {
|
|||
$defaultInstallDir = Join-Path $env:USERPROFILE ".meshcore-packet-capture"
|
||||
$script:InstallDir = Read-Host "Installation directory" $defaultInstallDir
|
||||
|
||||
# Use default if empty
|
||||
if (-not $script:InstallDir) {
|
||||
$script:InstallDir = $defaultInstallDir
|
||||
}
|
||||
|
||||
Write-Host "INFO: Installation directory: $InstallDir" -ForegroundColor Blue
|
||||
|
||||
# Check if directory exists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue