package main

import (
	"log"
	"os"

	"github.com/FiloSottile/CVE-2016-2107/LuckyMinus20"
)

func main() {
	res, err := LuckyMinus20.Test(os.Args[1])
	if err != nil {
		log.Fatal(err)
	}
	log.Println("Vulnerable:", res)
}

package main

import (
	"log"
	"os"

	"github.com/FiloSottile/CVE-2016-2107/LuckyMinus20"
)

func main() {
	res, err := LuckyMinus20.Test(os.Args[1])
	if err != nil {
		log.Fatal(err)
	}
	log.Println("Vulnerable:", res)
	if res {
		os.Exit(1)
	}
}

Exit with 1 when test is positive
Exit with 1 when test is positive

Unix Filippo! Come on! Will someone think of the _exit codes_