From 72048f8180810a2829618ef3861828f2d32a132f Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Mon, 14 Mar 2022 19:51:01 +0100 Subject: [PATCH] install.sh: add creation of extensions directory if does not exist --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index d0d7166..4e71eff 100755 --- a/install.sh +++ b/install.sh @@ -3,6 +3,11 @@ run_directory=$(dirname "$0") user=$(whoami) +if [ -d /home/$user/.bashrc.d ]; then + echo "~/.bashrc.d does not exist. Creating it..." + mkdir /home/$user/.bashrc.d +fi + echo "Copying bashrc-ffarchiving to extensions directory..." cp $run_directory/templates/bashrc-ffarchiving /home/$user/.bashrc.d/ sed -i -e "s:PH_DIRECTORY:$run_directory:g" /home/$user/.bashrc.d/bashrc-ffarchiving