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.
1 parent 5a37605 commit f0beec4Copy full SHA for f0beec4
install.sh
@@ -1,5 +1,6 @@
1
#!/bin/bash
2
3
+# Check if a Python executable is present.
4
if command -v python3 &>/dev/null; then
5
python_cmd=python3
6
elif command -v python &>/dev/null; then
@@ -9,6 +10,20 @@ else
9
10
exit 1
11
fi
12
13
+# Get the version number of Python installed on the system.
14
+python_version=$($python_cmd --version 2>&1 | awk '{print $2}')
15
+
16
+# Extract the major version number (i.e. 3 from 3.x).
17
+major_version=$(echo $python_version | cut -d. -f1)
18
19
+if [ "$major_version" == "3" ]; then
20
+ echo "Python 3 is installed."
21
+else
22
+ echo "Python 3 is not installed."
23
+ exit 1
24
+fi
25
26
+# Execute the installation
27
$python_cmd -m pip install -U robotframework
28
$python_cmd -m pip install -U robotframework-requests
29
$python_cmd -m pip install -U robotframework-databaselibrary
0 commit comments