Skip to content

Commit

Permalink
chore(pkg.tasker): use file perms as octal
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed May 2, 2021
1 parent 7328cbf commit 83f258d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/tasker/tasker.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package tasker
import (
"context"
"fmt"
"io/fs"
"log"
"os"
"os/exec"
Expand Down Expand Up @@ -79,7 +78,7 @@ func New(opt Option) *Tasker {
log.Fatalf("output dir does not exist: %s", filepath.Base(opt.Out))
}

file, err := os.OpenFile(opt.Out, os.O_CREATE|os.O_WRONLY, fs.ModePerm)
file, err := os.OpenFile(opt.Out, os.O_CREATE|os.O_WRONLY, 0777)
if err != nil {
log.Fatalf("can't open output file: %s", opt.Out)
}
Expand Down

0 comments on commit 83f258d

Please sign in to comment.