@@ -18,7 +18,7 @@ import (
1818 "github.com/golang/glog"
1919)
2020
21- const version = "v1.13.0 "
21+ const version = "v1.13.1 "
2222
2323func init () {
2424 var versionPrint bool
@@ -80,6 +80,11 @@ func main() {
8080 glog .Exit ("Failed to load input file: " + errInp .Error ())
8181 }
8282
83+ // Check if the workdir exists and confirm overwrite
84+ if ! utils .ConfirmOverwriteIfExists (inp .General .WorkDir , os .Stdin , os .Stdout ) {
85+ glog .Exit ("terminating..." )
86+ }
87+
8388 errExec := inp .ValidateExecutable ()
8489 if errExec != nil {
8590 glog .Exit ("Failed to validate executable: " + errExec .Error ())
@@ -150,11 +155,6 @@ func main() {
150155 glog .Exit ("Failed to validate checksum: " + errValidateChecksum .Error ())
151156 }
152157
153- // Check if the workdir exists and confirm overwrite
154- if ! utils .ConfirmOverwriteIfExists (inp .General .WorkDir , os .Stdin , os .Stdout ) {
155- glog .Exit ("terminating..." )
156- }
157-
158158 // Organize the dataset
159159 orgData , errOrganize := dataset .OrganizeDataset (inp .General .WorkDir , data )
160160 if errOrganize != nil {
@@ -186,7 +186,7 @@ func main() {
186186 }
187187
188188 if setupOnly {
189- glog .Exit ("Benchmark setup finished successfully, exiting" )
189+ glog .Info ("Benchmark setup finished successfully, exiting" )
190190 os .Exit (0 )
191191 }
192192
0 commit comments