Skip to content

Commit 261b010

Browse files
authored
Merge pull request #77 from tudortimi/fix_auto_lib_path
Fix computation of 'lib' path when calling 'git-issue.sh' without installing
2 parents 0c3b4ad + f0a32e9 commit 261b010

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

git-issue.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ IFS=:
3636
# Set library path
3737
# shellcheck disable=SC2086
3838
# Rationale: Word splitting not an issue
39-
LIB_PATH="$(dirname $0)/../lib:$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib"
39+
LIB_PATH="$(dirname $0)/lib:$(dirname $0)/../lib:$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib"
4040
if [ "x$GIT_ISSUE_LIB_PATH" != x ] ; then
4141
LIB_PATH="$GIT_ISSUE_LIB_PATH"
4242
fi

test.sh

-4
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,6 @@ ntest=0
180180
gi=$(pwd)/git-issue.sh
181181
gi_re=$(echo "$gi" | sed 's/[^0-9A-Za-z]/\\&/g')
182182

183-
# Setup GIT_ISSUE_LIB_PATH to allow pulling import-export.sh from lib
184-
GIT_ISSUE_LIB_PATH="$(pwd)/lib"
185-
export GIT_ISSUE_LIB_PATH
186-
187183
start sync-docs
188184
GenFiles='git-issue.sh git-issue.1'
189185
if ! git diff --quiet HEAD ; then

0 commit comments

Comments
 (0)