Skip to content

Commit 777dbe7

Browse files
committed
corrected min. Python version
Signed-off-by: Patrick Goetz <goetz.patrick@gmx.de>
1 parent b20b32a commit 777dbe7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

functions/packages.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,8 +895,8 @@ setup_esphome_device_builder() {
895895
echo -e "$(timestamp) [openHABian] ${COL_RED}Error: Failed to install Python 3 and pip.${COL_DEF}"
896896
return 1
897897
fi
898-
echo "$(timestamp) [openHABian] Check if Python 3 and pip are already installed..."
899-
elif ! [ "$(printf "%s\n%s" "3.1" "$(python3 -V 2>/dev/null | awk '{print $2}')" | sort -V | head -n1)" = "$min_python_version" ]; then
898+
echo "$(timestamp) [openHABian] Check if Python 3 and pip are already installed and up to date..."
899+
elif ! [ "$(printf "%s\n%s" "$min_python_version" "$(python3 -V 2>/dev/null | awk '{print $2}')" | sort -V | head -n1)" = "$min_python_version" ]; then
900900
echo "$(timestamp) [openHABian] updating Python 3 and pip..."
901901
if ! cond_redirect apt install -y python3; then
902902
echo -e "$(timestamp) [openHABian] ${COL_RED}Error: Failed to update Python 3 and pip.${COL_DEF}"

0 commit comments

Comments
 (0)