Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions tools/SQLAlertEmail/email_script.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ $Matches = Get-ChildItem "$Path$Date" -recurse -include *.log | Select-String "$

$email = New-Object System.Net.Mail.MailMessage
$email.From = $From
foreach($i in $To) {$email.To.Add($i)}
foreach ($i in $To) { $email.To.Add($i) }
$email.Subject = $Subject
$MatchList = foreach($m in $Matches) {"`t$m`n"}
$email.Body = $Body+"`n"+$MatchList
$MatchList = foreach ($m in $Matches) { "`t$m`n" }
$email.Body = $Body + "`n" + $MatchList

$smtp = New-Object System.Net.Mail.SmtpClient($SMTPServer, $SMTPPort);
$smtp.Credentials = New-Object System.Net.NetworkCredential($Account, $Password);
$smtp.EnableSSL = $true
$smtp.Send($email);
$smtp.Send($email);
10 changes: 5 additions & 5 deletions tools/appveyor/build.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
if(!(Test-Path -Path "C:/byond")){
bash tools/appveyor/download_byond.sh
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:/byond.zip", "C:/")
Remove-Item C:/byond.zip
if (!(Test-Path -Path "C:/byond")) {
bash tools/appveyor/download_byond.sh
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:/byond.zip", "C:/")
Remove-Item C:/byond.zip
}

Set-Location $env:APPVEYOR_BUILD_FOLDER

&"C:/byond/bin/dm.exe" -max_errors 0 tgstation.dme
exit $LASTEXITCODE
exit $LASTEXITCODE
22 changes: 11 additions & 11 deletions tools/tgs4_scripts/PreSynchronize.ps1
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
param(
$game_path
$game_path
)

cd $game_path
Set-Location $game_path

Write-Host "Installing pip dependencies..."
pip3 install PyYaml beautifulsoup4
if(!$?){
Write-Host "pip3 returned non-zero!"
exit $LASTEXITCODE
if (!$?) {
Write-Host "pip3 returned non-zero!"
exit $LASTEXITCODE
}

Write-Host "Running changelog script..."
python3 tools/ss13_genchangelog.py html/changelog.html html/changelogs
if(!$?){
Write-Host "python3 returned non-zero!"
exit $LASTEXITCODE
if (!$?) {
Write-Host "python3 returned non-zero!"
exit $LASTEXITCODE
}

Write-Host "Committing changes..."
git add html

if(!$?){
Write-Host "`git add` returned non-zero!"
exit $LASTEXITCODE
if (!$?) {
Write-Host "`git add` returned non-zero!"
exit $LASTEXITCODE
}

#we now don't care about failures
Expand Down