mirror of
https://github.com/Tech-Workers-Coalition-Italia/mobilizon-reshare.git
synced 2025-02-05 20:03:34 +01:00
release.sh: Force POSIX compliance.
This commit is contained in:
parent
3258e1b1c9
commit
bbf1ad7350
@ -5,8 +5,8 @@ set -eu
|
||||
myself="$(basename "$0")"
|
||||
version_file="$(pwd)/mobilizon_reshare/VERSION"
|
||||
pyproject_toml="$(pwd)/pyproject.toml"
|
||||
current-branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
current-commit="$(git log -1 --format='%H')"
|
||||
current_branch="$(git rev-parse --abbrev-ref HEAD)"
|
||||
current_commit="$(git log -1 --format='%H')"
|
||||
dryrun=0
|
||||
verbose=0
|
||||
publish=0
|
||||
@ -95,10 +95,10 @@ release-new-version() {
|
||||
restore-git-state () {
|
||||
# This way we can go back to a
|
||||
# detached HEAD state as well.
|
||||
if [ "${current-branch}" = "HEAD" ]; then
|
||||
git checkout "${current-commit}"
|
||||
if [ "${current_branch}" = "HEAD" ]; then
|
||||
git checkout "${current_commit}"
|
||||
else
|
||||
git checkout "${current-branch}"
|
||||
git checkout "${current_branch}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user