Add the ability to disable install
This commit is contained in:
parent
0edea05e46
commit
4d0de08caa
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.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 [[ $user != 'root' ]]; then
|
||||
echo "Copying rcs to home directory..."
|
||||
cp $run_directory/bashrc /home/$user/.bashrc
|
||||
|
Loading…
Reference in New Issue
Block a user