Skip to content

Commit 69cee11

Browse files
authored
Apt packages shall not be installed by scripts, since no superuser permissions are guaranteed (#231)
1 parent 0cac790 commit 69cee11

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

config/freertos/esp32/create.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ pushd $FW_TARGETDIR >/dev/null
1212

1313
echo "Installing ESP-IDF tools"
1414
python3 esp-idf/tools/idf_tools.py install
15-
15+
1616
echo "Installing ESP-IDF virtualenv"
17-
apt install -y python3-pip
17+
dpkg -s python3-pip > /dev/null
18+
if [[ $? -ne 0 ]]; then
19+
echo "Error: python3-pip package must be installed before continuing..."
20+
exit 1
21+
fi
1822
pip3 install virtualenv
1923
python3 esp-idf/tools/idf_tools.py install-python-env
2024

0 commit comments

Comments
 (0)