Skip to content

Instantly share code, notes, and snippets.

@chanibal
Last active October 16, 2019 08:52
Show Gist options
  • Save chanibal/397c39d59ede8682ce13 to your computer and use it in GitHub Desktop.
Save chanibal/397c39d59ede8682ce13 to your computer and use it in GitHub Desktop.
An utility to add BOM to UTF-8 files

Addbom project moved

Project moved from gist to full GitHub project: chanibal/addbom.

@lukjod
Copy link

lukjod commented Sep 24, 2019

how to edit to make additional check if file is already utf-8 BOM and skip convert. I'm using that on cron and that would be helpfull.
Also at the end it also can delete __bomtemp, Can You please edit it as mine script knowledge is not sufficient enought

@chanibal
Copy link
Author

@lukjod: your problem should be fixed now

@lukjod
Copy link

lukjod commented Sep 25, 2019

@chanibal
Thank You very much for all help and script editing,

@lukjod
Copy link

lukjod commented Oct 15, 2019

@chanibal
1 more request, seems that on mine qnap busybox read command doesnt work so not possible to quit if bom file already exist. Can this be aomehow rewritten with other command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment