add crtolf script
parent
0eafa3c8b5
commit
0a1e5a4ef2
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
for f in (find . -type f)
|
||||
set ftype (file -b --mime-type "$f")
|
||||
set basetype (string split "/" "$ftype")
|
||||
|
||||
if test "$basetype[1]" = "text"
|
||||
set tmp (mktemp)
|
||||
mac2unix -n "$f" "$tmp"
|
||||
mv "$tmp" "$f"
|
||||
end
|
||||
end
|
||||
|
||||
## EOF
|
Loading…
Reference in New Issue