Add the ability to disable install
This commit is contained in:
parent
3251615181
commit
7bb0023b2a
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
variables.conf
|
||||
|
||||
.disabled
|
||||
|
@ -3,6 +3,11 @@
|
||||
run_directory=$(dirname "$0")
|
||||
user=$(whoami)
|
||||
|
||||
if [ -f $run_directory/.disabled ]; then
|
||||
echo "Installation is disabled. Exiting..."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ ! -d /home/$user/.bashrc.d ]; then
|
||||
echo "~/.bashrc.d does not exist. Creating it..."
|
||||
mkdir /home/$user/.bashrc.d
|
||||
|
Loading…
Reference in New Issue
Block a user