Skip to content
Snippets Groups Projects
Commit 3df4ee48 authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

replace function should process multiple paths

parent 26fbce31
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ pkgversion(){
dpkg-parsechangelog --show-field Version
}
replace(){
find $3 -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execdir /bin/sed --follow-symlinks -i s^"$1"^"$2"^g {} \;
find ${@:3} -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execdir /bin/sed --follow-symlinks -i s^"$1"^"$2"^g {} \;
}
changelog(){
head -n 1 debian/changelog | grep -q $UPSTREAM-security && REPO=$CODENAME-security || REPO=$CODENAME
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment