Skip to content

Commit

Permalink
Merge pull request #136 from blckbx/main
Browse files Browse the repository at this point in the history
fix: kernel version check
  • Loading branch information
blckbx authored Oct 7, 2024
2 parents bef6588 + 896e8ce commit bbe50d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
##########UPDATE IF YOU MAKE A NEW RELEASE#############
major=0
minor=0
patch=4
patch=5

# check if sudo
if [ "$EUID" -ne 0 ]; then
Expand Down Expand Up @@ -39,8 +39,12 @@ echo "Checking kernel version..."
#echo

# requirement kernel version 5.10.102+
if [[ $kernelMajor -ge 5 ]] &&
( ([[ $kernelMinor -ge 10 ]] && [[ $kernelPatch -ge 102 ]]) ||
if [[ $kernelMajor -gt 5 ]]; then
echo "> ✅ kernel version ok"
echo
((rating++))
elif [[ $kernelMajor -ge 5 ]] &&
( ([[ $kernelMinor -ge 10 ]] && [[ $kernelPatch -ge 102 ]]) ||
[[ $kernelMinor -ge 11 ]]); then
echo "> ✅ kernel version ok"
echo
Expand Down

0 comments on commit bbe50d9

Please sign in to comment.