fix gosec failures

This commit is contained in:
Robert Parker
2019-03-08 12:59:54 +00:00
parent ce664dd654
commit 1fa4f6f148
3 changed files with 6 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ func verifySingleProcess() error {
// Verifies that there is only one instance running of the given program name.
func verifyOnlyOne(programName string) (int, error) {
// #nosec G104
out, _, _ := command.Run("ps", "-e", "--format", "cmd")
//if this goes wrong then assume we are the only one
numOfProg := strings.Count(out, programName)