Fix finding ports

This commit is contained in:
Zero King
2019-01-08 11:48:40 +00:00
parent a13ba9066e
commit b1f1cabfa6
+3 -3
View File
@@ -28,9 +28,9 @@ func GetChangedPortList() ([]string, error) {
line := stdoutScanner.Text()
var match []string
if match = portGrep.FindStringSubmatch(line); match == nil {
continue
} else if match = renameGrep.FindStringSubmatch(line); match == nil {
continue
if match = renameGrep.FindStringSubmatch(line); match == nil {
continue
}
}
port := match[1]
if _, ok := portsFound[port]; !ok {