We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
check_program_version_at_least
1 parent 90525f7 commit b579608Copy full SHA for b579608
Meta/shell_include.sh
@@ -17,24 +17,6 @@ exit_if_running_as_root() {
17
fi
18
}
19
20
-# Usage: check_program_version_at_least <Display Name> <Program Name> <Version String>
21
-check_program_version_at_least()
22
-{
23
- echo -n "Checking for $1 version at least $3... "
24
- if ! command -v "$2" > /dev/null 2>&1; then
25
- echo "ERROR: Cannot find $2 ($1)"
26
- return 1
27
- fi
28
- v=$("$2" --version 2>&1 | grep -E -o '[0-9]+\.[0-9\.]+[a-z]*' | head -n1)
29
- if printf '%s\n' "$3" "$v" | sort -V -c &>/dev/null; then
30
- echo "ok, found $v"
31
- return 0;
32
- else
33
- echo "ERROR: found version $v, too old!"
34
- return 1;
35
36
-}
37
-
38
get_number_of_processing_units() {
39
number_of_processing_units="nproc"
40
SYSTEM_NAME="$(uname -s)"
0 commit comments