Skip to content

Commit 1878bde

Browse files
committed
fix: installer not working for linux mint 22.1
1 parent 5029a02 commit 1878bde

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/linux/installer.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,20 @@ TMP_DIR=$(mktemp -d)
128128
check_os_version() {
129129
if [ -f /etc/os-release ]; then
130130
. /etc/os-release
131-
132131
# 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
132+
case "$ID:${VERSION_ID%%.*}" in # Extract major version number
133+
ubuntu:24) # Ubuntu 24.x
135134
return 0
136135
;;
137-
linuxmint:22) # Linux Mint 22
136+
linuxmint:22) # Linux Mint 22.x
138137
return 0
139138
;;
140-
kali:2024.2|kali:2024.[3-9]|kali:20[2-9][0-9].[0-9]) # Kali 2024.2 or newer
139+
kali:2024|kali:20[2-9][0-9]) # Kali 2024.x or newer
141140
return 0
142141
;;
143142
esac
144143
fi
145-
return 1 # None of the specified versions detected
144+
return 1
146145
}
147146

148147
# Create Invocation Script Function

0 commit comments

Comments
 (0)