From addfce6bef8d311a15a8ed9b41739a18937d9aad Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Mon, 21 Mar 2022 22:05:13 +0100 Subject: [PATCH] install.sh: add creation of .bashrc.d if it does not exist --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index f1827db..f098e87 100755 --- a/install.sh +++ b/install.sh @@ -8,6 +8,11 @@ if [ -f $run_directory/.disabled ]; then exit 0 fi +if [ ! -d /home/$user/.bashrc.d ]; then + echo "~/.bashrc.d does not exist. Creating it..." + mkdir /home/$user/.bashrc.d +fi + echo "Copying bashrc-mine to extensions directory..." cp $run_directory/bashrc-mine /home/$user/.bashrc.d/