Skip to content

Commit

Permalink
remove llcppg.cfg.changed file when run llcppg finished
Browse files Browse the repository at this point in the history
  • Loading branch information
tsingbx committed Dec 8, 2024
1 parent 7127a36 commit edbc46c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion llcppg.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,13 @@ func main() {
check(err)

changedCfgFile := ags.CfgFile + ".changed"
err = os.WriteFile(changedCfgFile, b, 0644)
err = os.WriteFile(changedCfgFile, b, 0600)
check(err)

defer func() {
os.Remove(changedCfgFile)
}()

err = gogensig(r, changedCfgFile)
check(err)
}
Expand Down

0 comments on commit edbc46c

Please sign in to comment.