Skip to content

Commit 954f707

Browse files
committed
tools/gitlog2version.sh: make SCRIPT_DIR always known (so we can find semver-compare.sh helper) [networkupstools#3055]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent e0777e1 commit 954f707

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/gitlog2version.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ LC_ALL=C
6969
TZ=UTC
7070
export LANG LC_ALL TZ
7171

72+
SCRIPT_DIR="`dirname \"$0\"`"
73+
SCRIPT_DIR="`cd \"${SCRIPT_DIR}\" && pwd`"
74+
7275
if [ x"${abs_top_srcdir}" = x ]; then
73-
SCRIPT_DIR="`dirname \"$0\"`"
74-
SCRIPT_DIR="`cd \"${SCRIPT_DIR}\" && pwd`"
7576
abs_top_srcdir="${SCRIPT_DIR}/.."
7677
fi
7778
if [ x"${abs_top_builddir}" = x ]; then

0 commit comments

Comments
 (0)