1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 07:57:12 -07:00

Build fix.

This commit is contained in:
Cedric Beust 2017-05-09 10:56:00 -07:00
parent d1039ce9af
commit 1d7f04bf47

View file

@ -46,7 +46,7 @@ class Gpg @Inject constructor(val localProperties: LocalProperties) {
allArgs.add(gpg)
val pwd = localProperties.getNoThrows("gpg.password")
if (! pwd.isNullOrBlank()) {
if (pwd != null && ! pwd.isNullOrBlank()) {
allArgs.add("--passphrase")
allArgs.add(pwd)
allArgs.add("--batch")
@ -54,7 +54,7 @@ class Gpg @Inject constructor(val localProperties: LocalProperties) {
}
val keyId = localProperties.getNoThrows("gpg.keyId")
if (! keyId.isNullOrBlank()) {
if (keyId != null && ! keyId.isNullOrBlank()) {
allArgs.add("--local-user")
allArgs.add(keyId)
}