Skip to content

Commit db0e3c8

Browse files
committed
Update sed command (per https://stackoverflow.com/a/19457213)
1 parent fa3c656 commit db0e3c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

update_version.sh

100644100755
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
echo "Updating version number in files: from $1 to $2"
2-
sed -i "s/$1/$2/g" README.md
3-
sed -i "s/$1/$2/g" setup.py
4-
sed -i "s/$1/$2/g" ./doc/source/index.rst
5-
sed -i "s/$1/$2/g" ./doc/source/conf.py
6-
sed -i "s/$1/$2/g" ./doc/source/installation_guide.rst
7-
sed -i "s/$1/$2/g" ./plot_utils/__init__.py
2+
sed -i "" -e "s/$1/$2/g" README.md
3+
sed -i "" -e "s/$1/$2/g" setup.py
4+
sed -i "" -e "s/$1/$2/g" ./doc/source/index.rst
5+
sed -i "" -e "s/$1/$2/g" ./doc/source/conf.py
6+
sed -i "" -e "s/$1/$2/g" ./doc/source/installation_guide.rst
7+
sed -i "" -e "s/$1/$2/g" ./plot_utils/__init__.py

0 commit comments

Comments
 (0)