summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-01-16 02:12:41 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-01-16 02:42:52 +0100
commit99c2e8ed5c797078188911d05b693388a88ade3d (patch)
tree656739818bed8e47da875e21fdda8f187ccd7370 /mix.exs
parent23c6cea889658b5a03b113854f0489ee2da147c7 (diff)
mix.exs: GNU sed doesn't into proper getopt()
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/mix.exs b/mix.exs
index 281cca643..5404a5c11 100644
--- a/mix.exs
+++ b/mix.exs
@@ -346,7 +346,7 @@ defmodule Pleroma.Mixfile do
find = "find lib test priv -type f \\( -name '*.ex' -or -name '*.exs' \\) -exec "
grep = "grep -L '# Copyright' {} \\; |"
- xargs = "xargs -n1 sed -i '' '1s;^;#{template};'"
+ xargs = "xargs -n1 sed -i'' '1s;^;#{template};'"
:os.cmd(String.to_charlist("#{find}#{grep}#{xargs}"))
end
@@ -355,7 +355,7 @@ defmodule Pleroma.Mixfile do
year = NaiveDateTime.utc_now().year
find = "find lib test priv -type f \\( -name '*.ex' -or -name '*.exs' \\) |"
- xargs = "xargs sed -i '' 's/# Copyright © 2017-20[0-9][0-9]/# Copyright © 2017-#{year}/'"
+ xargs = "xargs sed -i'' 's/# Copyright © 2017-20[0-9][0-9]/# Copyright © 2017-#{year}/'"
:os.cmd(String.to_charlist("#{find}#{xargs}"))
end