mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-16 15:39:21 +01:00
sandbox/update-version: Simplify logic in updating version while still using UTC time.
Conflicts: sandbox/update-version src/version.py
This commit is contained in:
parent
2c4adf123c
commit
33debcd565
@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
echo "Updating version..."
|
echo -n "Updating version... "
|
||||||
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( TZ="/usr/share/zoneinfo/UTC" date -Iseconds ))'/" src/version.py
|
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( date -u -Iseconds ))'/" src/version.py
|
||||||
git add src/version.py
|
git add src/version.py && echo "done"
|
||||||
# vim: set ft=sh: syntax:
|
|
||||||
|
# vim: set ft=sh:
|
||||||
|
Loading…
Reference in New Issue
Block a user