From a4365ba31618050830a109e67290011fd981d069 Mon Sep 17 00:00:00 2001
From: Mattias Andrée <maandree@kth.se>
Date: Fri, 25 Jun 2021 18:32:00 +0200
Subject: Fix bugs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Mattias Andrée <maandree@kth.se>
---
 bash-completion/bash-aliases | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'bash-completion/bash-aliases')

diff --git a/bash-completion/bash-aliases b/bash-completion/bash-aliases
index 92aab19..00f8341 100644
--- a/bash-completion/bash-aliases
+++ b/bash-completion/bash-aliases
@@ -10,7 +10,7 @@ recomplete () {
 	if test -f /usr/share/bash-completion/bash_completion && ! shopt -oq posix; then
 		. /usr/share/bash-completion/bash_completion
 	fi
-	if test -d ~/.local/bash_completion.d ] && ! shopt -oq posix; then
+	if test -d ~/.local/bash_completion.d && ! shopt -oq posix; then
 		for __completionscript in ~/.local/bash_completion.d/*; do
 			if test -r "${__completionscript}"; then
 				. "${__completionscript}"
@@ -20,8 +20,8 @@ recomplete () {
 	fi
 	if test -d ~/.local/share/bash_completion.d && ! shopt -oq posix; then
 		for __completionscript in ~/.local/share/bash_completion.d/*; do
-			if [ -r "${__completionscript}" ]; then
-			. "${__completionscript}"
+			if test -r "${__completionscript}"; then
+				. "${__completionscript}"
 			fi
 		done
 		unset __completionscript
-- 
cgit v1.2.3-70-g09d2