[openjk] 03/19: Try setting private ssh key differently..

Simon McVittie smcv at debian.org
Sat Aug 5 10:52:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian/master
in repository openjk.

commit d0b1e10454d549218c06c5e0468cf6c52afaf657
Author: Xycaleth <alex at acslo.com>
Date:   Wed Jun 21 21:45:49 2017 +0100

    Try setting private ssh key differently..
---
 appveyor.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/appveyor.yml b/appveyor.yml
index 3f9f22a..61627b1 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -69,5 +69,9 @@ artifacts:
 #  - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
 
 deploy_script:
-  - ps: Set-Content C:\Users\appveyor\.ssh\id_rsa $env:DeploymentKey
+  - ps: $key = $env:DeploymentKey
+  - ps: $fileContent = "-----BEGIN RSA PRIVATE KEY-----" + "`n"
+  - ps: for ($i = 0; $i -lt $key.Length / 64; $i++) { $min = [math]::min(64, $key.Length - ($i * 64)); $fileContent += $key.substring($i*64, $min) + "`n"; }
+  - ps: $fileContent += "-----END RSA PRIVATE KEY-----" + "`n"
+  - ps: Set-Content c:\users\appveyor\.ssh\id_rsa $fileContent
   - scripts/builds/deploy.bat

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/openjk.git



More information about the Pkg-games-commits mailing list