mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2026-02-04 00:08:33 +00:00
feat(BRIDGE-356): Added retry logic for unavailable preferred keychain on Linux; Feature flag support before bridge initialization; Refactored some bits of the code;
This commit is contained in:
@ -20,6 +20,8 @@ package versioner
|
||||
import (
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/ProtonMail/proton-bridge/v3/internal/platform"
|
||||
)
|
||||
|
||||
// fileExists returns whether the given file exists.
|
||||
@ -30,7 +32,7 @@ func fileExists(path string) bool {
|
||||
|
||||
// fileIsExecutable returns the given filepath and true if it exists.
|
||||
func fileIsExecutable(path string) bool {
|
||||
if runtime.GOOS == "windows" {
|
||||
if runtime.GOOS == platform.WINDOWS {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user