Use sed s## instead of s// to handle new copyright.

This commit is contained in:
Daniel Nichter
2013-12-18 23:21:07 +00:00
parent 491d1831a6
commit 50e908a9f9

View File

@@ -186,7 +186,7 @@ update_copyright_year() {
if [ $? -ne 0 ]; then
die "Error parsing copyright year in $tool_file"
fi
sed -i'.bak' -e "s/^$copyright/$new_copyright/" $tool_file
sed -i'.bak' -e "s#^$copyright#$new_copyright#" $tool_file
if [ $? -ne 0 ]; then
die "Error updating copyright year in $tool_file"
fi
@@ -201,7 +201,7 @@ update_copyright_year() {
if [ $? -ne 0 ]; then
die "Error parsing copyright year in percona-toolkit.pod"
fi
sed -i'.bak' -e "s/^$copyright/$new_copyright/" $pod
sed -i'.bak' -e "s#^$copyright#$new_copyright#" $pod
if [ $? -ne 0 ]; then
die "Error updating copyright year in percona-toolkit.pod"
fi