Add the ability to disable install

This commit is contained in:
Alexandre CATTEAU 2022-03-17 14:54:40 +01:00
parent 90ff27de21
commit d2896feae4
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.disabled

View File

@ -3,6 +3,11 @@
run_directory=$(dirname "$0")
user=$(whoami)
if [ -f $run_directory/.disabled ]; then
echo "Installation is disabled. Exiting..."
exit 0
fi
echo "Copying bashrc-mine to extensions directory..."
cp $run_directory/bashrc-mine /home/$user/.bashrc.d/