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

This commit is contained in:
Paul Schaub 2024-09-19 20:37:46 +02:00
parent 8134e3cd12
commit 5f18edd2e7
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 mode(mode: EncryptAs): Encrypt = apply { commandList.add("--as=$mode") }
override fun signWith(key: InputStream): Encrypt = apply { 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)}") envList.add("SIGN_WITH_$argCounter=${ExternalSOP.readString(key)}")
argCounter += 1 argCounter += 1
} }