From 7bb0023b2a67d5b7f03028990a39da62bb2eb753 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 17 Mar 2022 15:05:53 +0100 Subject: [PATCH] Add the ability to disable install --- .gitignore | 2 +- install.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f8f86ad..99a3140 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ variables.conf - +.disabled diff --git a/install.sh b/install.sh index 0cba5c8..7af597f 100755 --- a/install.sh +++ b/install.sh @@ -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