Skip to content

Commit

Permalink
Merge pull request #4 from ulule/fix/do-not-set-execute-perm-to-outpu…
Browse files Browse the repository at this point in the history
…t-json-files

fix: do not set execute permission to output files
  • Loading branch information
thoas committed Jan 28, 2021
2 parents 8b02d77 + 9f3b615 commit 9205b2b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions etl/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"os"
"path"
"strings"

Expand Down Expand Up @@ -156,7 +155,7 @@ func (e *Engine) extract(ctx context.Context, outputPath string, schema config.S
}

filePath := path.Join(outputPath, table.Name+extensionFormat)
if err := ioutil.WriteFile(filePath, output, os.ModePerm); err != nil {
if err := ioutil.WriteFile(filePath, output, 0644); err != nil {
return fmt.Errorf("unable to write JSON output to %s: %w", filePath, err)
}

Expand Down

0 comments on commit 9205b2b

Please sign in to comment.