mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
f922c09929
use --> user
8 lines
389 B
Bash
Executable File
8 lines
389 B
Bash
Executable File
#!/usr/bin/env bash
|
|
export TZ="/usr/share/zoneinfo/UTC" # Use UTC with version timestamps.
|
|
echo "Updating version..."
|
|
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( date -Iseconds ))'/" src/version.py
|
|
unset TZ # Return to the system timezone.
|
|
exec $SHELL # Execute the current shell to return to user timezone if specified in config of shell.
|
|
git add src/version.py
|