Skip to content

Commit eb69d78

Browse files
committed
fix: installer broken in ubuntu 24,10
1 parent 6a10029 commit eb69d78

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

docs/linux/installer.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,19 @@ TMP_DIR=$(mktemp -d)
128128
check_os_version() {
129129
if [ -f /etc/os-release ]; then
130130
. /etc/os-release
131-
if [[ "$ID" = "ubuntu" && "$VERSION_ID" = "24.04" ]] ||
132-
[[ "$ID" = "linuxmint" && "$VERSION_ID" = "22" ]] ||
133-
([[ "$ID" = "kali" ]] && [[ "$VERSION_ID" > "2024.2" ]] || [[ "$VERSION_ID" == "2024.2" ]]); then
134-
return 0 # Ubuntu 24.04, Linux Mint 22, or Kali Linux 2024.2 or newer detected
135-
fi
131+
132+
# Define supported OS and version combinations
133+
case "$ID:$VERSION_ID" in
134+
ubuntu:24.04|ubuntu:24.10) # Ubuntu 24.04 or 24.10
135+
return 0
136+
;;
137+
linuxmint:22) # Linux Mint 22
138+
return 0
139+
;;
140+
kali:2024.2|kali:2024.[3-9]|kali:20[2-9][0-9].[0-9]) # Kali 2024.2 or newer
141+
return 0
142+
;;
143+
esac
136144
fi
137145
return 1 # None of the specified versions detected
138146
}

0 commit comments

Comments
 (0)