mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-27 09:47:34 +03:00
Merge pull request #3531 from gitbutlerapp/plus-to-underscore
change normalization to use underscore instead of plus
This commit is contained in:
commit
2dfe176a42
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Finds all files in a directory and renames all spaces to '+'.
|
||||
# Finds all files in a directory and renames all spaces to '_'.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
@ -12,7 +12,7 @@ if [ -z "$ROOT_DIR" ]; then
|
||||
fi
|
||||
|
||||
find "$ROOT_DIR" -type f -name '*' -print0 | while IFS= read -r -d '' file; do
|
||||
new_file="$(echo "$file" | tr ' ' '+')"
|
||||
new_file="$(echo "$file" | tr ' ' '_')"
|
||||
if [[ "$file" != "$new_file" ]]; then
|
||||
mv -v "$file" "$new_file"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user