diff --git a/install.sh b/install.sh index c95b0ce..84baee3 100644 --- a/install.sh +++ b/install.sh @@ -9,6 +9,11 @@ check_os_version() { exit 1 fi + if ! command -v bc &> /dev/null; then + echo "The 'bc' command is required but not installed. Installing..." + apt update && apt install -y bc + fi + if [[ "$os_name" == "ubuntu" && $(echo "$os_version >= 22" | bc) -eq 1 ]] || [[ "$os_name" == "debian" && $(echo "$os_version >= 11" | bc) -eq 1 ]]; then return 0