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