mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 03:26:36 +03:00
change normalization to use underscore instead of plus
This commit is contained in:
parent
8524f85ef9
commit
deaddc5b99
@ -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