mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 02:04:17 +00:00
release: fix release script for relative paths
This commit is contained in:
parent
8c4e8d5beb
commit
e06261471c
|
@ -192,6 +192,8 @@ DIR="$(git rev-parse --show-toplevel)"
|
|||
|
||||
ORIGIN=origin
|
||||
|
||||
BASH_SOURCE_ABSOLUTE="$(readlink -f "$BASH_SOURCE")"
|
||||
|
||||
test -d "$DIR" &&
|
||||
cd "$DIR" &&
|
||||
test -f ./contrib/fedora/rpm/build_clean.sh || die "cannot find NetworkManager base directory"
|
||||
|
@ -354,7 +356,7 @@ if [ -n "$RELEASE_BRANCH" ]; then
|
|||
fi
|
||||
|
||||
if [ "$ALLOW_LOCAL_BRANCHES" != 1 ]; then
|
||||
cmp <(git show origin/main:contrib/fedora/rpm/release.sh) "$BASH_SOURCE" || die "$BASH_SOURCE is not identical to \`git show origin/main:contrib/fedora/rpm/release.sh\`"
|
||||
cmp <(git show origin/main:contrib/fedora/rpm/release.sh) "$BASH_SOURCE_ABSOLUTE" || die "$BASH_SOURCE is not identical to \`git show origin/main:contrib/fedora/rpm/release.sh\`"
|
||||
fi
|
||||
|
||||
if ! check_news "$RELEASE_MODE" "@{VERSION_ARR[@]}" ; then
|
||||
|
|
Loading…
Reference in a new issue