1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-24 23:40:27 +00:00

Fix tools/removecr.janet

This commit is contained in:
Calvin Rose 2019-10-29 18:56:32 -05:00
parent 427b2638e0
commit 46e09e4c71

View File

@ -2,6 +2,6 @@
# windows may add bad line endings, we can just force removal
# with this script.
(def fname ((dyn :args) 1))
(def input (slurp fname))
(def source (slurp fname))
(def new-source (string/replace-all "\r" "" source))
(spit fname new-source :wb)