aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-01-27 23:03:26 +0100
committerMateja <mail@matejamaric.com>2021-01-27 23:03:26 +0100
commitd924ce2ef5412d59fdd1e3126b38bcd9f55bff7d (patch)
treed82d3a523f868f1fd4058326e9908fb1c7174eb9
parent15d071d3f07d10bd100bf275fa00687bec1d2284 (diff)
downloadsetup-scripts-d924ce2ef5412d59fdd1e3126b38bcd9f55bff7d.tar.gz
setup-scripts-d924ce2ef5412d59fdd1e3126b38bcd9f55bff7d.zip
Add option for non-free and contrib repos only.
-rwxr-xr-xsetup.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/setup.sh b/setup.sh
index 19bbbff..6a1d82c 100755
--- a/setup.sh
+++ b/setup.sh
@@ -5,6 +5,7 @@ config_install=false;
termite_install=false;
neovim_install=false;
latex_install=false;
+non_free=false;
nvidia_install=false;
read -p "Do you want to install Qtile? " -n 1 -r
@@ -21,18 +22,25 @@ echo
read -p "Do you want to install Neovim? " -n 1 -r
echo
-if [[ $REPLY =~ ^[Yy]$ ]] && $neovim_install=true;
+[[ $REPLY =~ ^[Yy]$ ]] && $neovim_install=true;
read -p "Do you want to install LaTeX? " -n 1 -r
echo
-if [[ $REPLY =~ ^[Yy]$ ]] && $latex_install=true;
+[[ $REPLY =~ ^[Yy]$ ]] && $latex_install=true;
+read -p "Do you want to enable non-free repos?" -n 1 -r
+echo
+[[ $REPLY =~ ^[Yy]$ ]] && $non_free=true;
+
+if [[ $non_free ]]
+then
read -p "Do you want to install proprietary nvidia drivers? " -n 1 -r
echo
-if [[ $REPLY =~ ^[Yy]$ ]] && $nvidia_install=true;
+[[ $REPLY =~ ^[Yy]$ ]] && $nvidia_install=true;
+fi
# Adding non-free repos if necessary.
-if [[ $nvidia_install ]]
+if [[ $non_free ]]
then
cat > /tmp/sources.list <<EOF
deb http://deb.debian.org/debian/ buster main contrib non-free