mirror of
https://github.com/janet-lang/janet
synced 2026-03-05 15:29:52 +00:00
Update amalg step.
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
# windows may add bad line endings, we can just force removal
|
||||
# with this script.
|
||||
(def fname ((dyn :args) 1))
|
||||
(with [f (file/open fname :rb+)]
|
||||
(def source (:read f :all))
|
||||
(def new-source (string/replace-all "\r" "" source))
|
||||
(:seek f :set 0)
|
||||
(:write f new-source))
|
||||
(def input (slurp fname :rb))
|
||||
(def new-source (string/replace-all "\r" "" source))
|
||||
(spit fname new-source :wb)
|
||||
|
||||
Reference in New Issue
Block a user