aboutsummaryrefslogtreecommitdiffstats
path: root/utils.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-03-05 17:48:39 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-03-05 17:48:39 +0100
commit1441d4c5806219c59fa1ae27c411a0fedb87a7c2 (patch)
treeec1a2fd103d422e13161895590d04f3873894266 /utils.go
parent2231e3eae86c5e3ae05e30f667d331f5875c7884 (diff)
Fixed target and terminal id arg parsing
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go2
1 files changed, 1 insertions, 1 deletions
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)
}