Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mbridak committed Nov 9, 2023
1 parent 27a2a4c commit 8273c96
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions update_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

today=$(date +'%y.%m.%d')
today_no_leading_zeros=$(echo "$today" | sed 's/\.0/./g')

tnlz=$(echo version = \"$today_no_leading_zeros\")
str=$(cat pyproject.toml | grep version)
sed -i "s/$str/$tnlz/" pyproject.toml

str=$(cat fdlogger/lib/version.py | grep __version__)
tnlz=$(echo __version__ = \"$today_no_leading_zeros\")
sed -i "s/$str/$tnlz/" fdlogger/lib/version.py

0 comments on commit 8273c96

Please sign in to comment.