File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed
Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -128,11 +128,19 @@ TMP_DIR=$(mktemp -d)
128128check_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}
You can’t perform that action at this time.
0 commit comments