forked from TrueCloudLab/rclone
Make compatible with go 1.1 - fixes #1
This commit is contained in:
parent
4bfca75012
commit
1d67b014cb
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ func Command(commands []string) byte {
|
||||||
if len(result) != 1 {
|
if len(result) != 1 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
i := strings.IndexByte(optString, result[0])
|
i := strings.Index(optString, string(result[0]))
|
||||||
if i >= 0 {
|
if i >= 0 {
|
||||||
return result[0]
|
return result[0]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue