Skip to content

Commit

Permalink
fix: installer broken in ubuntu 24,10
Browse files Browse the repository at this point in the history
  • Loading branch information
charlypa committed Dec 11, 2024
1 parent 6a10029 commit a540974
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions docs/linux/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,19 @@ TMP_DIR=$(mktemp -d)
check_os_version() {
if [ -f /etc/os-release ]; then
. /etc/os-release
if [[ "$ID" = "ubuntu" && "$VERSION_ID" = "24.04" ]] ||
[[ "$ID" = "linuxmint" && "$VERSION_ID" = "22" ]] ||
([[ "$ID" = "kali" ]] && [[ "$VERSION_ID" > "2024.2" ]] || [[ "$VERSION_ID" == "2024.2" ]]); then
return 0 # Ubuntu 24.04, Linux Mint 22, or Kali Linux 2024.2 or newer detected
fi

# Define supported OS and version combinations
case "$ID:$VERSION_ID" in
ubuntu:24.04|ubuntu:24.10) # Ubuntu 24.04 or 24.10
return 0
;;
linuxmint:22) # Linux Mint 22
return 0
;;
kali:2024.2|kali:2024.[3-9]|kali:20[2-9][0-9].[0-9]) # Kali 2024.2 or newer
return 0
;;
esac
fi
return 1 # None of the specified versions detected
}
Expand Down

0 comments on commit a540974

Please sign in to comment.