From 736ed1b098c40b22cd829aa13ea62c50d747fc1a Mon Sep 17 00:00:00 2001 From: Stephen Klein Date: Sun, 20 Jul 2025 07:35:06 -0400 Subject: [PATCH] Fix critical Linux Mint case sensitivity bug in repository detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lsb_release -is returns "Linuxmint" (lowercase m) not "LinuxMint" - Fix condition in lib/system.sh Docker installation - Fix condition in privileged-setup - Fix condition in lib/privileges.sh This was preventing UBUNTU_CODENAME detection from working properly. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- lib/privileges.sh | 2 +- lib/system.sh | 2 +- privileged-setup | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/privileges.sh b/lib/privileges.sh index 120cb28..085680f 100755 --- a/lib/privileges.sh +++ b/lib/privileges.sh @@ -198,7 +198,7 @@ install_docker() { # Add Docker repository with proper Ubuntu codename detection for Linux Mint local ubuntu_codename - if [[ "$(lsb_release -is)" == "LinuxMint" ]]; then + if [[ "$(lsb_release -is)" == "Linuxmint" ]]; then # Linux Mint provides UBUNTU_CODENAME in /etc/os-release if [[ -f /etc/os-release ]]; then ubuntu_codename=$(grep '^UBUNTU_CODENAME=' /etc/os-release | cut -d= -f2) diff --git a/lib/system.sh b/lib/system.sh index 3c2345b..dc61d64 100644 --- a/lib/system.sh +++ b/lib/system.sh @@ -1148,7 +1148,7 @@ install_docker() { local ubuntu_codename echo "DEBUG: Configuring Docker repository" echo "DEBUG: Detected OS: $(lsb_release -is)" - if [[ "$(lsb_release -is)" == "LinuxMint" ]]; then + if [[ "$(lsb_release -is)" == "Linuxmint" ]]; then echo "DEBUG: Linux Mint detected, checking for UBUNTU_CODENAME" # Linux Mint provides UBUNTU_CODENAME in /etc/os-release if [[ -f /etc/os-release ]]; then diff --git a/privileged-setup b/privileged-setup index 58eefa6..a3047e5 100755 --- a/privileged-setup +++ b/privileged-setup @@ -42,7 +42,7 @@ install_docker() { # Add Docker repository with proper Ubuntu codename detection for Linux Mint local ubuntu_codename - if [[ "$(lsb_release -is)" == "LinuxMint" ]]; then + if [[ "$(lsb_release -is)" == "Linuxmint" ]]; then # Linux Mint provides UBUNTU_CODENAME in /etc/os-release if [[ -f /etc/os-release ]]; then ubuntu_codename=$(grep '^UBUNTU_CODENAME=' /etc/os-release | cut -d= -f2)