nix: Make nix the root
Which means now I'll have to think about real prefixes in commit names.
This commit is contained in:
parent
550eed06e0
commit
ee178b7d57
190 changed files with 5 additions and 6 deletions
14
unprocessed/config/scripts/remcrlf
Executable file
14
unprocessed/config/scripts/remcrlf
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
#! nix-shell -i bash --pure
|
||||
#! nix-shell -p bash
|
||||
|
||||
# Removes CRLF (^M or \r) from a file
|
||||
|
||||
#sed -e "s/^M//" "$1" -i
|
||||
|
||||
tmpfile=$(mktemp)
|
||||
|
||||
cp "$1" "$tmpfile"
|
||||
tr -d '\r' < "$tmpfile" > "$1"
|
||||
rm "$tmpfile"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue