Also -no-upgrade with any command

This commit is contained in:
Jakob Borg committed 2014-11-17 19:02:41 +04:00
1 parent ddd2759cec
commit 45917f278a
1 file changed
+5 -1
+5 -1
View File
@@ -82,7 +82,11 @@ func main() {
checkRequiredGoVersion()
if flag.NArg() == 0 {
install("./cmd/...", nil)
var tags []string
if noupgrade {
tags = []string{"noupgrade"}
}
install("./cmd/...", tags)
return
}