correct replace in files (#46)
This commit is contained in:
parent
04791568c5
commit
4a391ddbf6
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue