This commit is contained in:
Benjy 2024-08-15 08:25:05 +01:00 committed by GitHub
parent c0f807135d
commit f2f591c021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ MLOG="install-$(date +%d-%H%M%S)_hyprland2.log"
# Install Hyprland # Install Hyprland
printf "${NOTE} Installing Hyprland ...\n" printf "${NOTE} Installing Hyprland ...\n"
# Get the OS ID from the release file # Get the OS ID from the release file
os_name=$(grep '^ID=' /etc/os-release | tr -d '"' | cut -d= -f2) ID=$(grep '^ID=' /etc/os-release | cut -d= -f2 | tr -d '"')
ID_LIKE=$(grep '^ID_LIKE=' /etc/os-release | cut -d= -f2 | tr -d '"') ID_LIKE=$(grep '^ID_LIKE=' /etc/os-release | cut -d= -f2 | tr -d '"')
# Check if the OS is Debian or Ubuntu # Check if the OS is Debian or Ubuntu
if [[ "$ID" == "debian" || ( "$ID_LIKE" == *"debian"* && "$ID" != "ubuntu" ) ]]; then if [[ "$ID" == "debian" || ( "$ID_LIKE" == *"debian"* && "$ID" != "ubuntu" ) ]]; then