From 56f82be3cc0f98af05989f34f44817e90d0e814f Mon Sep 17 00:00:00 2001 From: Alban VIDAL Date: Fri, 15 Jun 2018 19:22:24 +0200 Subject: [PATCH] Fix ~/.bashrc.d/*.conf if more than one file exist Thanks to Quentin L. Signed-off-by: Alban VIDAL --- root/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/.bashrc b/root/.bashrc index 59247ad..c5fcf4b 100644 --- a/root/.bashrc +++ b/root/.bashrc @@ -1,5 +1,5 @@ # If .bashrc.d directory exist, load .conf files -if [ -f ~/.bashrc.d/*.conf ]; then +if [[ -f ~/.bashrc.d/*.conf ]]; then for bashrc_d_file in ~/.bashrc.d/*.conf ; do . $bashrc_d_file done