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:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user