build-sys: fix the default bash completion directory
authorTanu Kaskinen <tanuk@iki.fi>
Sun, 27 Sep 2015 13:48:18 +0000 (16:48 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Sun, 27 Sep 2015 14:02:17 +0000 (17:02 +0300)
If bashcompletiondir was empty, the check didn't catch that. As
a result, the symlinks that were supposed to be generated in the
completion directory were created in the root directory.

configure.ac

index dac52c2..003673e 100644 (file)
@@ -1439,7 +1439,7 @@ AC_SUBST(udevrulesdir)
 AC_ARG_WITH([bash-completion-dir],
         AS_HELP_STRING([--with-bash-completion-dir=DIR], [Directory for bash completion files]),
         [bashcompletiondir=$withval], [bashcompletiondir=$($PKG_CONFIG --variable=completionsdir bash-completion)])
-if test "x$bashcompletionsdir" = ""; then
+if test "x$bashcompletionsdir" = "x"; then
        bashcompletiondir="${datadir}/bash-completion/completions"
 fi