From d349572d3d024c902ce1e747ce69f3ad9d8a47f0 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 12 Oct 2023 23:43:45 +0900 Subject: [PATCH] update on readme and install script --- README.md | 6 +++++- install.sh | 17 +++++++---------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index fc3853b..b7f4c03 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,11 @@ ### ⚠️ Pre-requisites: - Needs a Debian 12 Testing (Trixie) Branch as it needs a newer wayland packages! I have tried on Stable Debian 12 Bookworm in which, Hyprland wont build -- if you have manually installed Debian, make sure that "deb-src's" are enabled in your /etc/apt/sources.list. By default, it will enable the first line with deb-src +- edit your /etc/apt/sources.list and remove # and enable atleast one 'deb-src' else will not install properly. +```bash +sudo nano /etc/apt/sources.list +``` +- delete # on first line with 'deb-src' atleast ![alt text](https://github.com/JaKooLit/Debian-Hyprland/blob/main/screenshots/default-dark.png) diff --git a/install.sh b/install.sh index 3263884..b8e7ee7 100755 --- a/install.sh +++ b/install.sh @@ -25,6 +25,13 @@ if [ "$proceed" != "y" ]; then exit 1 fi +read -p "$(tput setaf 6)Have you edited your /etc/apt/sources.list? (y/n): $(tput sgr0)" proceed2 + +if [ "$proceed2" != "n" ]; then + echo "Installation aborted Kindly edit your sources.list first. Refer to readme." + exit 1 +fi + # Set some colors for output messages OK="$(tput setaf 2)[OK]$(tput sgr0)" ERROR="$(tput setaf 1)[ERROR]$(tput sgr0)" @@ -132,16 +139,6 @@ printf "\n" # Ensuring all in the scripts folder are made executable chmod +x install-scripts/* -# enabling deb-src in /etc/apt/sources.list -# Path to the sources.list file -sources_list="/etc/apt/sources.list" - -# Remove the '#' from lines starting with '#deb-src' -sudo awk '/^#deb-src/ {sub(/^#/, "", $0)} {print}' "$sources_list" > "$sources_list.tmp" && sudo mv "$sources_list.tmp" "$sources_list" - -# Remove the '#' from lines starting with '#deb' -sudo awk '/^#deb/ {sub(/^#/, "", $0)} {print}' "$sources_list" > "$sources_list.tmp" && sudo mv "$sources_list.tmp" "$sources_list" - sudo apt update # Install hyprland packages