diff --git a/main.go b/main.go index 931017b..4ca5ac7 100644 --- a/main.go +++ b/main.go @@ -16,7 +16,7 @@ import ( ) const ( - version = "2.0.1" + version = "2.0.2" tool = "raw" usage = ` Imports a lair JSON file into a new lair project. @@ -51,6 +51,9 @@ func main() { log.Fatal("Fatal: Missing LAIR_API_SERVER environment variable") } lairPID := os.Getenv("LAIR_ID") + if lairPID == "" { + log.Fatal("Fatal: Missing LAIR_ID") + } var filename string switch len(flag.Args()) { case 2: