mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
Fixed syntax error
On branch hl-051 Your branch is up to date with 'origin/hl-051'. Changes to be committed: modified: install.sh
This commit is contained in:
parent
d298480443
commit
307a0c641f
23
install.sh
23
install.sh
@ -22,7 +22,7 @@ RESET="$(tput sgr0)"
|
|||||||
# Function to print colorful text
|
# Function to print colorful text
|
||||||
print_color() {
|
print_color() {
|
||||||
printf "%b%s%b\n" "$1" "$2" "$RESET"
|
printf "%b%s%b\n" "$1" "$2" "$RESET"
|
||||||
l
|
}
|
||||||
|
|
||||||
# Warning: End of Life Support
|
# Warning: End of Life Support
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
@ -59,14 +59,13 @@ print_color $YELLOW "
|
|||||||
"
|
"
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
|
|
||||||
# Prompt user to continue or exit
|
# Prompt user to continue or exit
|
||||||
read -rp "Do you want to continue with the installation? [y/N]: " confirm
|
read -rp "Do you want to continue with the installation? [y/N]: " confirm
|
||||||
case "$confirm" in
|
case "$confirm" in
|
||||||
[yY][eE][sS]|[yY])
|
[yY][eE][sS] | [yY])
|
||||||
echo -e "${OK} Continuing with installation..."
|
echo -e "${OK} Continuing with installation..."
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo -e "${NOTE} You chose not to continue. Exiting..."
|
echo -e "${NOTE} You chose not to continue. Exiting..."
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
@ -109,7 +108,6 @@ if ! command -v whiptail >/dev/null; then
|
|||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
echo -e "\e[35m
|
echo -e "\e[35m
|
||||||
╦╔═┌─┐┌─┐╦ ╦ ╦┬ ┬┌─┐┬─┐┬ ┌─┐┌┐┌┌┬┐
|
╦╔═┌─┐┌─┐╦ ╦ ╦┬ ┬┌─┐┬─┐┬ ┌─┐┌┐┌┌┬┐
|
||||||
@ -140,13 +138,12 @@ sleep 1
|
|||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
|
|
||||||
# install pciutils if detected not installed. Necessary for detecting GPU
|
# install pciutils if detected not installed. Necessary for detecting GPU
|
||||||
if ! dpkg -l | grep -w pciutils > /dev/null; then
|
if ! dpkg -l | grep -w pciutils >/dev/null; then
|
||||||
echo "pciutils is not installed. Installing..." | tee -a "$LOG"
|
echo "pciutils is not installed. Installing..." | tee -a "$LOG"
|
||||||
sudo apt install -y pciutils
|
sudo apt install -y pciutils
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Path to the install-scripts directory
|
# Path to the install-scripts directory
|
||||||
script_directory=install-scripts
|
script_directory=install-scripts
|
||||||
|
|
||||||
@ -171,7 +168,7 @@ if [ -f "./hypr-tags.env" ]; then
|
|||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
source "./hypr-tags.env"
|
source "./hypr-tags.env"
|
||||||
# If core tags are set to auto/latest, refresh to resolve concrete versions
|
# If core tags are set to auto/latest, refresh to resolve concrete versions
|
||||||
if [ "${HYPRUTILS_TAG:-}" = "auto" ] || [ "${HYPRUTILS_TAG:-}" = "latest" ] || [ -z "${HYPRUTILS_TAG:-}" ] || \
|
if [ "${HYPRUTILS_TAG:-}" = "auto" ] || [ "${HYPRUTILS_TAG:-}" = "latest" ] || [ -z "${HYPRUTILS_TAG:-}" ] ||
|
||||||
[ "${HYPRLANG_TAG:-}" = "auto" ] || [ "${HYPRLANG_TAG:-}" = "latest" ] || [ -z "${HYPRLANG_TAG:-}" ]; then
|
[ "${HYPRLANG_TAG:-}" = "auto" ] || [ "${HYPRLANG_TAG:-}" = "latest" ] || [ -z "${HYPRLANG_TAG:-}" ]; then
|
||||||
if [ -f ./refresh-hypr-tags.sh ]; then
|
if [ -f ./refresh-hypr-tags.sh ]; then
|
||||||
chmod +x ./refresh-hypr-tags.sh || true
|
chmod +x ./refresh-hypr-tags.sh || true
|
||||||
@ -244,7 +241,7 @@ fi
|
|||||||
|
|
||||||
# Check if NVIDIA GPU is detected
|
# Check if NVIDIA GPU is detected
|
||||||
nvidia_detected=false
|
nvidia_detected=false
|
||||||
if lspci | grep -i "nvidia" &> /dev/null; then
|
if lspci | grep -i "nvidia" &>/dev/null; then
|
||||||
nvidia_detected=true
|
nvidia_detected=true
|
||||||
whiptail --title "NVIDIA GPU Detected" --msgbox "NVIDIA GPU detected in your system.\n\nNOTE: The script will install nvidia-dkms, nvidia-utils, and nvidia-settings if you choose to configure." 12 60
|
whiptail --title "NVIDIA GPU Detected" --msgbox "NVIDIA GPU detected in your system.\n\nNOTE: The script will install nvidia-dkms, nvidia-utils, and nvidia-settings if you choose to configure." 12 60
|
||||||
fi
|
fi
|
||||||
@ -317,7 +314,7 @@ while true; do
|
|||||||
selected_options=$(echo "$selected_options" | tr -d '"' | tr -s ' ')
|
selected_options=$(echo "$selected_options" | tr -d '"' | tr -s ' ')
|
||||||
|
|
||||||
# Convert selected options into an array (preserving spaces in values)
|
# Convert selected options into an array (preserving spaces in values)
|
||||||
IFS=' ' read -r -a options <<< "$selected_options"
|
IFS=' ' read -r -a options <<<"$selected_options"
|
||||||
|
|
||||||
# Check if the "dots" option was selected
|
# Check if the "dots" option was selected
|
||||||
dots_selected="OFF"
|
dots_selected="OFF"
|
||||||
@ -432,7 +429,7 @@ sleep 1
|
|||||||
selected_options=$(echo "$selected_options" | tr -d '"' | tr -s ' ')
|
selected_options=$(echo "$selected_options" | tr -d '"' | tr -s ' ')
|
||||||
|
|
||||||
# Convert selected options into an array (splitting by spaces)
|
# Convert selected options into an array (splitting by spaces)
|
||||||
IFS=' ' read -r -a options <<< "$selected_options"
|
IFS=' ' read -r -a options <<<"$selected_options"
|
||||||
|
|
||||||
# Loop through selected options
|
# Loop through selected options
|
||||||
for option in "${options[@]}"; do
|
for option in "${options[@]}"; do
|
||||||
@ -513,7 +510,6 @@ for file in "${files_to_delete[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
# copy fastfetch config if debian is not present
|
# copy fastfetch config if debian is not present
|
||||||
@ -553,7 +549,7 @@ if [ -e /usr/local/bin/hyprland ] || [ -f /usr/local/bin/Hyprland ]; then
|
|||||||
echo "👌 ${OK} You chose NOT to reboot"
|
echo "👌 ${OK} You chose NOT to reboot"
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
# Check if NVIDIA GPU is present
|
# Check if NVIDIA GPU is present
|
||||||
if lspci | grep -i "nvidia" &> /dev/null; then
|
if lspci | grep -i "nvidia" &>/dev/null; then
|
||||||
echo "${INFO} HOWEVER ${YELLOW}NVIDIA GPU${RESET} detected. Reminder that you must REBOOT your SYSTEM..."
|
echo "${INFO} HOWEVER ${YELLOW}NVIDIA GPU${RESET} detected. Reminder that you must REBOOT your SYSTEM..."
|
||||||
printf "\n%.0s" {1..1}
|
printf "\n%.0s" {1..1}
|
||||||
fi
|
fi
|
||||||
@ -570,4 +566,3 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
printf "\n%.0s" {1..2}
|
printf "\n%.0s" {1..2}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user