1
0
Fork 0

Make executable only if test copied successfully

timestamps
dump_stack() 2018-12-01 20:33:06 +00:00
parent 1488d4b081
commit dcc156272c
1 changed files with 5 additions and 5 deletions

10
pew.go
View File

@ -223,11 +223,11 @@ func whatever(swg *sizedwaitgroup.SizedWaitGroup, ka config.Artifact,
// we should not exit because of testing 'insmod' part
// for kernel module
}
}
_, err = q.Command("root", "chmod +x "+remoteTest)
if err != nil {
return
} else {
_, err = q.Command("root", "chmod +x "+remoteTest)
if err != nil {
return
}
}
if ka.Type == config.KernelModule {