23 lines
561 B
PowerShell
23 lines
561 B
PowerShell
Import-Module ./update-archive.psm1
|
|
Import-Module ./update-db.psm1
|
|
|
|
#Скачивание обновлений БД мира
|
|
Write-Host -ForegroundColor Cyan -NoNewline "`nDownload DB updates?(y/n): "
|
|
$answerDbUpd = Read-Host
|
|
if ($answerDbUpd -eq "y"){
|
|
update-db
|
|
}
|
|
elseif ($answerDbUpd -eq "n") {
|
|
Write-Host "Skipping DB updates`n"
|
|
}
|
|
|
|
#Обновить модуль
|
|
Write-Host -ForegroundColor Cyan -NoNewline "`nUpdate archive?(y/n): "
|
|
$answerArchUpd = Read-Host
|
|
if ($answerArchUpd -eq "y"){
|
|
update-archive
|
|
}
|
|
elseif ($answerArchUpd -eq "n") {
|
|
break
|
|
}
|