Fix ~/.bashrc.d/*.conf if more than one file exist
Thanks to Quentin L. Signed-off-by: Alban VIDAL <alban.vidal@zordhak.fr>
This commit is contained in:
parent
d7f9c3b373
commit
56f82be3cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user