Minho 8 years ago
parent
commit
83415b8572
1 changed files with 4 additions and 1 deletions
  1. 4 1
      commands/update.go

+ 4 - 1
commands/update.go

@@ -39,7 +39,10 @@ func CheckUpdate() {
 		os.Exit(0)
 	}
 
-	fmt.Println("MinDoc last version => ", result[0].Name)
+	if len(result) > 0 {
+		fmt.Println("MinDoc last version => ", result[0].Name)
+	}
+
 	os.Exit(0)
 
 }