summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ff64866)
raw | patch | inline | side by side (parent: ff64866)
author | fredboy <fredboy@protonmail.com> | |
Tue, 16 Apr 2024 20:32:53 +0000 (03:32 +0700) | ||
committer | fredboy <fredboy@protonmail.com> | |
Tue, 16 Apr 2024 20:32:53 +0000 (03:32 +0700) |
up-version.sh | patch | blob | history |
diff --git a/up-version.sh b/up-version.sh
index ed84b4d69b14bef6ffa68d8ee84207c3e451efe6..7637355e9d8a675c279272f2618a07d7514d8640 100755 (executable)
--- a/up-version.sh
+++ b/up-version.sh
#!/usr/bin/env bash
-git stash > /dev/null
-stashed=$?
-
new_version=$1
new_version_string=$(echo $new_version | sed 's/\(alpha\|beta\)\(.*\)/\1 \2/')
git commit -m "Update version"
git tag "$new_version"
-
-if [ $stashed ]; then
- git stash pop
-fi