Skip to content

Commit

Permalink
fix: do not set execute permission to output files
Browse files Browse the repository at this point in the history
  • Loading branch information
yansal committed Jan 28, 2021
1 parent 8b02d77 commit 9f3b615
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 9f3b615

Please sign in to comment.