Skip to content
Snippets Groups Projects
Commit 866a6ba6 authored by Matthieu Muffato's avatar Matthieu Muffato
Browse files

[annual copyright updater]. Bugfix: do not touch symbolic links

parent 491b3b93
No related branches found
No related tags found
2 merge requests!469Yearly copyright update [feature/xref_sprint],!463[annual copyright updater]. Bugfix: do not touch symbolic links
Pipeline #52464 failed with stage
in 16 minutes and 31 seconds
...@@ -39,7 +39,7 @@ for var in $dirs; do ...@@ -39,7 +39,7 @@ for var in $dirs; do
echo "About to scan $(pwd) for files to replace '$search' with '$replacement'" echo "About to scan $(pwd) for files to replace '$search' with '$replacement'"
for file in $(grep -R --files-with-matches "$search" --exclude-dir=.git .); do for file in $(grep -r --files-with-matches "$search" --exclude-dir=.git .); do
echo "Replacing date in $file" echo "Replacing date in $file"
if [ "$(uname)" = "Darwin" ]; then if [ "$(uname)" = "Darwin" ]; then
LC_CTYPE=C LANG=C sed -i '' -e "s/$search/$replacement/g" $file LC_CTYPE=C LANG=C sed -i '' -e "s/$search/$replacement/g" $file
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment