Skip to content

Commit a23bdcd

Browse files
author
nate smith
committed
clean up leftover debugging, add -e
1 parent f30b7db commit a23bdcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

script/prepare-windows-cert.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
set -e
23

34
GITHUB_CERT_PASSWORD=$1
45
DESKTOP_CERT_TOKEN=$2
@@ -9,5 +10,5 @@ curl \
910
--output windows-certificate.pfx \
1011
https://api.github.com/repos/desktop/desktop-secrets/contents/windows-certificate.pfx
1112

12-
openssl pkcs12 -in windows-certificate.pfx -nocerts -nodes -out private-key.pem -passin pass:${GITHUB_CERT_PASSWORD} || echo "no bueno 1"
13-
openssl pkcs12 -in windows-certificate.pfx -nokeys -nodes -out certificate.pem -passin pass:${GITHUB_CERT_PASSWORD} || echo "no bueno 2"
13+
openssl pkcs12 -in windows-certificate.pfx -nocerts -nodes -out private-key.pem -passin pass:${GITHUB_CERT_PASSWORD}
14+
openssl pkcs12 -in windows-certificate.pfx -nokeys -nodes -out certificate.pem -passin pass:${GITHUB_CERT_PASSWORD}

0 commit comments

Comments
 (0)