Merge pull request #15 from 0xLennyy/fix/cpulimit

Thank you @0xLennyy 
check cpulimit command
This commit is contained in:
0xOzgur 2024-06-07 15:39:01 +03:00 committed by GitHub
commit a5e8832d8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,6 +33,15 @@ else
echo "git is installed"
fi
if ! command -v cpulimit &> /dev/null
then
echo "cpulimit could not be found"
echo "Installing cpulimit..."
su -c "apt update && apt install cpulimit -y"
else
echo "cpulimit is installed"
fi
sudo apt upgrade -y