install.sh: add creation of .bashrc.d if it does not exist
This commit is contained in:
parent
d2896feae4
commit
addfce6bef
@ -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/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user