Use auto type detection for scanned devices in smart input (#3561)

This commit is contained in:
Daniel Nelson 2017-12-08 18:03:12 -08:00 committed by GitHub
parent 88746b01c3
commit 93d16a4603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ func (m *Smart) scan() ([]string, error) {
devices := []string{} devices := []string{}
for _, line := range strings.Split(string(out), "\n") { for _, line := range strings.Split(string(out), "\n") {
dev := strings.Split(line, "#") dev := strings.Split(line, " ")
if len(dev) > 1 && !excludedDev(m.Excludes, strings.TrimSpace(dev[0])) { if len(dev) > 1 && !excludedDev(m.Excludes, strings.TrimSpace(dev[0])) {
devices = append(devices, strings.TrimSpace(dev[0])) devices = append(devices, strings.TrimSpace(dev[0]))
} }