fix: use the correct file name

This commit is contained in:
Daylin Morgan 2023-05-27 16:42:48 -05:00
parent 3c9909deed
commit 5308f69b4e
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
TAG=$(git describe --tags --always --dirty=-dev) TAG=$(git describe --tags --always --dirty=-dev)
VERSION="${TAG#v}" VERSION="${TAG#v}"
if [[ "$(git diff --name-only HEAD HEAD~1)" == *"./src/viv/viv.py"* ]]; then if [[ "$(git diff --name-only HEAD HEAD~1)" == *"src/viv/viv.py"* ]]; then
sed -i "s/__version__ = \".*\"/__version__ = \"$VERSION\"/g" src/viv/viv.py sed -i "s/__version__ = \".*\"/__version__ = \"$VERSION\"/g" src/viv/viv.py
fi fi