X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=utils.go;h=393ee2a21bb05d28108b4f2f0048adc4d034a670;hb=881633b639856a9575072d2f53bb3518acbf64a8;hp=0ca64713cb1641ceac60559f45751ebfa6052838;hpb=2231e3eae86c5e3ae05e30f667d331f5875c7884;p=src%2Fxds%2Fxds-cli.git diff --git a/utils.go b/utils.go index 0ca6471..393ee2a 100644 --- a/utils.go +++ b/utils.go @@ -150,5 +150,5 @@ func Confirm(question string) bool { // compareID Compare an ID to a reference ID func compareID(refID, ID string) bool { - return refID != "" && ID != "" && strings.Contains(refID, ID) + return refID != "" && ID != "" && strings.HasPrefix(refID, ID) }