Skip to content

Instantly share code, notes, and snippets.

@lukjod
lukjod / addbom
Last active September 25, 2019 09:25 — forked from chanibal/README.md
An utility to add BOM to UTF-8 files
#!/usr/bin/env bash
set -e
if [[ $# == 1 ]]; then
INPUT="$1"
OUTPUT="$(mktemp)"
SUCCESS=0
function commit
{