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 0d44cb2 commit ad44f6eCopy full SHA for ad44f6e
install.sh
@@ -61,8 +61,7 @@ function install_software() {
61
}
62
63
function check_python_version() {
64
- python3 -V | grep '3.[7-9].[0-9]' &> /dev/null
65
- if ! [ $? == 0 ]; then
+ if ! python3 -V | grep '3.[7-9].[0-9]' > /dev/null 2>&1; then
66
echo "An unsupported version of python 3 is installed. Must have python 3.7+ installed to use the Hologram SDK"
67
exit 1
68
fi
@@ -125,8 +124,7 @@ do
125
124
pause "Installing $program. Press [Enter] key to continue...";
126
install_software 'python3-pip'
127
128
- pip3 -V | grep '3.[7-9]' &> /dev/null
129
+ if ! pip3 -V | grep '3.[7-9]' >/dev/null 2>&1; then
130
echo "pip3 is installed for an unsupported version of python."
131
132
0 commit comments