wip: Add support for secrets
This commit is contained in:
@ -7,7 +7,7 @@ func CreateWorkdir(path string) (workdir string, err error) {
|
||||
// Create a dir using the path
|
||||
// It should not be removed after the execution
|
||||
if err := os.Mkdir(path, 0777); err != nil {
|
||||
return "", err
|
||||
return path, err
|
||||
}
|
||||
// TODO(@allanger): I've got a feeling that it doesn't have to look that bad
|
||||
workdir = path
|
||||
@ -16,7 +16,7 @@ func CreateWorkdir(path string) (workdir string, err error) {
|
||||
// It should be removed after the execution
|
||||
workdir, err = os.MkdirTemp("", "shoebill")
|
||||
if err != nil {
|
||||
return "", err
|
||||
return workdir, err
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user