correct replace in files (#46)

This commit is contained in:
irengrig 2018-08-21 14:45:32 +02:00 committed by GitHub
parent 04791568c5
commit 4a391ddbf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ function path() {
# $3 replace target
function replace_in_files() {
if [ -d "$1" ]; then
find $1 -type f -type l -exec sed -i 's@'"$2"'@'"$3"'@g' {} ';'
find $1 -type f -exec sed -i 's@'"$2"'@'"$3"'@g' {} ';'
fi
}