File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function install_software() {
61
61
}
62
62
63
63
function check_python_version() {
64
- if ! python3 -V | grep ' 3.[9-11] .[0-9]' > /dev/null 2>&1 ; then
64
+ if ! python3 -V | grep -E ' 3.(9|1[012]) .[0-9]' > /dev/null 2>&1 ; then
65
65
echo " An unsupported version of python 3 is installed. Must have python 3.9+ installed to use the Hologram SDK"
66
66
exit 1
67
67
fi
124
124
pause " Installing $program . Press [Enter] key to continue..." ;
125
125
install_software ' python3-pip'
126
126
fi
127
- if ! pip3 -V | grep ' 3.[7-9] ' > /dev/null 2>&1 ; then
127
+ if ! pip3 -V | grep -E ' 3.(9|1[012]) ' > /dev/null 2>&1 ; then
128
128
echo " pip3 is installed for an unsupported version of python."
129
129
exit 1
130
130
fi
Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ function install_software() {
58
58
}
59
59
60
60
function check_python_version() {
61
- if ! python3 -V | grep ' 3.[7-9] .[0-9]' > /dev/null 2>&1 ; then
62
- echo " An unsupported version of python 3 is installed. Must have python 3.7 + installed to use the Hologram SDK"
61
+ if ! python3 -V | grep -E ' 3.(9|1[012]) .[0-9]' > /dev/null 2>&1 ; then
62
+ echo " An unsupported version of python 3 is installed. Must have python 3.9 + installed to use the Hologram SDK"
63
63
exit 1
64
64
fi
65
65
}
132
132
pause " Installing $program . Press [Enter] key to continue..." ;
133
133
install_software ' python3-pip'
134
134
fi
135
- if ! pip3 -V | grep ' 3.[7-9] ' > /dev/null 2>&1 ; then
135
+ if ! pip3 -V | grep -E ' 3.(9|1[012]) ' > /dev/null 2>&1 ; then
136
136
echo " pip3 is installed for an unsupported version of python."
137
137
exit 1
138
138
fi
You can’t perform that action at this time.
0 commit comments