EncryptExternal: Fix parameter passing for --sign-with option

This commit is contained in:
Paul Schaub 2024-09-19 20:37:46 +02:00
parent ae2389cabf
commit 1df5747549
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -36,7 +36,7 @@ class EncryptExternal(
override fun mode(mode: EncryptAs): Encrypt = apply { commandList.add("--as=$mode") }
override fun signWith(key: InputStream): Encrypt = apply {
commandList.add("--sign-with@ENV:SIGN_WITH_$argCounter")
commandList.add("--sign-with=@ENV:SIGN_WITH_$argCounter")
envList.add("SIGN_WITH_$argCounter=${ExternalSOP.readString(key)}")
argCounter += 1
}