From 5c4d8dff2ba453138c6b3ad56f58a07d00419871 Mon Sep 17 00:00:00 2001
From: archshift <gh@archshift.com>
Date: Tue, 17 Mar 2015 19:26:45 -0700
Subject: [PATCH] Strip newlines on the build name before trying to upload.

---
 appveyor.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/appveyor.yml b/appveyor.yml
index ae22101ebc..c5005bd6dd 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -40,8 +40,8 @@ after_build:
         if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
           {
             $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
-            $GITREV = git show -s --format='%h'
-            $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z"
+            $GITREV = $(git show -s --format='%h')
+            $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z" -replace "`n|`r",""
             # zip up the build folder
             7z a $BUILD_NAME .\build\bin\release\*