Skip to content

Commit

Permalink
Rename some files to be more cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
nmarghetti committed Jan 3, 2021
1 parent f3fa157 commit 3a5735b
Show file tree
Hide file tree
Showing 67 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ trim_trailing_whitespace = true
[*.txt]
indent_size = false

[test/fast/Listing versions/Running "nvm ls" calls into nvm_alias]
[test/fast/Listing versions/Running 'nvm ls' calls into nvm_alias]
indent_size = false

[test/fast/Listing versions/Running "nvm ls --no-alias" does not call into nvm_alias]
[test/fast/Listing versions/Running 'nvm ls --no-alias' does not call into nvm_alias]
indent_size = false

[test/fast/Unit tests/mocks/**]
Expand Down
20 changes: 20 additions & 0 deletions rename_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#! /usr/bin/env bash

main() {
local filename
local new_filename
while read -r filename; do
new_filename=$(echo "$filename" | sed -r -e "s/\"/'/g" -e 's/</\[/g' -e 's/>/\]/g')
printf '%s\n%s\n\n' "$filename" "$new_filename"
git mv "$filename" "$new_filename"
done < <(find test -name "*[\\/:\*\?\"<>\|]*")

if [ "$(find test -name "*[\\/:\*\?\"<>\|]*" | wc -l)" != "0" ]; then
echo "Still some files to treat:"
find test -name "*[\\/:\*\?\"<>\|]*"
else
echo "Done"
fi
}

main

0 comments on commit 3a5735b

Please sign in to comment.