Skip to content

Commit decaa36

Browse files
authoredApr 5, 2022
Merge pull request #340 from yamaton/fix-get-options
Fix failing to get options if bash-completion<=2.9
2 parents 6ee9826 + 87676a4 commit decaa36

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎server/src/get-options.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

3-
DATADIR="$(pkg-config --variable=datadir bash-completion)"
3+
COMPLETIONSDIR="$(pkg-config --variable=completionsdir bash-completion)"
4+
DATADIR="$(dirname "$(dirname "${COMPLETIONSDIR}")")"
45

56
# Exit if bash-completion isn't installed.
67
if (( $? != 0 ))

0 commit comments

Comments
 (0)
Please sign in to comment.