Fix order of respecting settings

This commit is contained in:
Maxim Baz
2019-03-16 14:53:24 +01:00
parent cbbf6b73ff
commit 45d63b9d88

View File

@@ -65,11 +65,11 @@ func fetchDecryptedContents(request *request) {
store.Path = normalizedStorePath
var gpgPath string
if store.Settings.GpgPath != "" || request.Settings.GpgPath != "" {
if store.Settings.GpgPath != "" {
gpgPath = store.Settings.GpgPath
} else {
if request.Settings.GpgPath != "" || store.Settings.GpgPath != "" {
if request.Settings.GpgPath != "" {
gpgPath = request.Settings.GpgPath
} else {
gpgPath = store.Settings.GpgPath
}
err = validateGpgBinary(gpgPath)
if err != nil {