1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-07-15 01:25:10 +02:00

Ensure self-updater binary test works

This commit is contained in:
Ralph Slooten
2022-07-30 00:05:27 +12:00
parent b7dbda0db6
commit 0799a6d67c

View File

@ -170,7 +170,7 @@ func GithubUpdate(repo, appName, currentVersion string) (string, error) {
// ensure the new binary is executable (mainly for inconsistent darwin builds) // ensure the new binary is executable (mainly for inconsistent darwin builds)
/* #nosec G204 */ /* #nosec G204 */
cmd := exec.Command(newExec) cmd := exec.Command(newExec, "-h")
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {
return "", err return "", err
} }