Skip to content

Commit 25fcc11

Browse files
authored
Merge pull request #2 from Gaz492/dev
Check if proxy token is set
2 parents 0e67267 + c78acfa commit 25fcc11

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: exporter.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ func main() {
2727
PackVersion = flag.String("p", "1.0.0", "Pack Version (e.g 1.0.0)")
2828
ExportName = flag.String("n", "Twitch-Export", "Export Name")
2929
buildConfig := flag.String("c", ".build.json", "Config file to get build variables")
30-
ProxyAuthToken = flag.String("pt", "changeme", "Authentication token used to authenticate with Gaz's Twitch Proxy")
30+
ProxyAuthToken = flag.String("pt", "", "Authentication token used to authenticate with Gaz's Twitch Proxy")
3131
flag.Parse()
3232

33+
if *ProxyAuthToken == "" {
34+
fmt.Println("Please enter a proxy token using -pt <toke>")
35+
os.Exit(1)
36+
}
37+
3338
BuildConfig = readBuildJson(*buildConfig)
3439
PackDIR = *mcDirCLI
3540
readMCDIR(*mcDirCLI)

0 commit comments

Comments
 (0)