Skip to content

Commit 3cff08d

Browse files
committed
Exit get-options.sh if bash-completion isn't installed
1 parent 682de8a commit 3cff08d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server/src/get-options.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
DATADIR="$(pkg-config --variable=datadir bash-completion)"
44

5+
# Exit if bash-completion isn't installed.
6+
if (( $? != 0 ))
7+
then
8+
exit 1
9+
fi
10+
511
source "$DATADIR/bash-completion/bash_completion"
612

713
COMP_LINE="$*"

0 commit comments

Comments
 (0)