From cc00af38ece6f3f086e39a5a18de958028e04a62 Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Tue, 26 Sep 2017 17:50:21 +0800 Subject: [PATCH] Update opensuse.md --- docs/arduino-ide/opensuse.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/arduino-ide/opensuse.md b/docs/arduino-ide/opensuse.md index c3d00808..01b240ff 100644 --- a/docs/arduino-ide/opensuse.md +++ b/docs/arduino-ide/opensuse.md @@ -6,7 +6,11 @@ Installation instructions for openSUSE ```bash sudo usermod -a -G dialout $USER && \ - sudo zypper install git python3-pip python3-pyserial && \ + if [ `python --version 2>&1 | grep '2.7' | wc -l` = "1" ]; then \ + sudo zypper install git python-pip python-pyserial; \ + else \ + sudo zypper install git python3-pip python3-pyserial; \ + fi && \ mkdir -p ~/Arduino/hardware/espressif && \ cd ~/Arduino/hardware/espressif && \ git clone https://github.com/espressif/arduino-esp32.git esp32 && \