Compare commits

..

No commits in common. "6e34196220a28cf9e38361e65dbc5946fb7789f9" and "edb3ba35d842ba9d319d60fa34dc3cf7f21739df" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@ package cmd
import (
"bytes"
"fmt"
"os"
"os/exec"
"strings"
@ -62,10 +61,9 @@ func isAutoresticRunning() bool {
lines := strings.Split(out.String(), "\n")
autoresticProcesses := []string{}
currentPid := fmt.Sprint(os.Getpid())
for _, line := range lines {
if strings.Contains(line, "autorestic") && !strings.Contains(line, "grep autorestic") && !strings.Contains(line, currentPid) {
if strings.Contains(line, "autorestic") && !strings.Contains(line, "grep autorestic") {
autoresticProcesses = append(autoresticProcesses, line)
}
}

View File

@ -17,7 +17,7 @@ import (
"github.com/spf13/viper"
)
const VERSION = "1.8.1"
const VERSION = "1.8.0"
type OptionMap map[string][]interface{}
type Options map[string]OptionMap