diff --git a/scripts/gen_example.ps1 b/scripts/gen_example.ps1 index 0d825e1..1d50018 100644 --- a/scripts/gen_example.ps1 +++ b/scripts/gen_example.ps1 @@ -60,15 +60,10 @@ function Initialize-Config { # Generate initial config by running network ls & $OASIS_CMD network ls > $null - # if (-not (Test-Path $USER_CFG_DIR)) { - # Write-Error "Failed to generate config file at $USER_CFG_DIR" - # exit 1 - # } - - # # Create example config directory if it doesn't exist - # if (-not (Test-Path (Split-Path $CFG_DIR))) { - # New-Item -ItemType Directory -Force -Path (Split-Path $CFG_DIR) | Out-Null - # } + if (-not (Test-Path $USER_CFG_DIR)) { + Write-Error "Failed to generate config file at $USER_CFG_DIR" + exit 1 + } # Move the fresh config to example directory Move-Item -Path $USER_CFG_DIR -Destination $CFG_DIR