Fix order of respecting settings
This commit is contained in:
@@ -65,11 +65,11 @@ func fetchDecryptedContents(request *request) {
|
|||||||
store.Path = normalizedStorePath
|
store.Path = normalizedStorePath
|
||||||
|
|
||||||
var gpgPath string
|
var gpgPath string
|
||||||
if store.Settings.GpgPath != "" || request.Settings.GpgPath != "" {
|
if request.Settings.GpgPath != "" || store.Settings.GpgPath != "" {
|
||||||
if store.Settings.GpgPath != "" {
|
if request.Settings.GpgPath != "" {
|
||||||
gpgPath = store.Settings.GpgPath
|
|
||||||
} else {
|
|
||||||
gpgPath = request.Settings.GpgPath
|
gpgPath = request.Settings.GpgPath
|
||||||
|
} else {
|
||||||
|
gpgPath = store.Settings.GpgPath
|
||||||
}
|
}
|
||||||
err = validateGpgBinary(gpgPath)
|
err = validateGpgBinary(gpgPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user