Skip to content

Commit 5a63097

Browse files
committed
+ проверка apt
1 parent 63c946f commit 5a63097

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# IntelliJ project files
2+
.idea
3+
*.iml
4+
out
5+
gen

install_python_from_source.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ install_tools_in_venv() {
266266
}
267267

268268
echo "УСТАНОВЩИК PYTHON ${VERSION} ИЗ ИСХОДНИКОВ"
269+
if ! command -v apt >/dev/null 2>&1; then
270+
echo "Этот скрипт рассчитан на Debian/Ubuntu/Linux Mint."
271+
exit 1
272+
fi
269273
echo "ПРОВЕРЕНО НА Linux Mint 21.3 x64"
270274

271275
echo "УСТАНОВЛЕННЫЕ ВЕРСИИ PYTHON В СИСТЕМЕ:"

0 commit comments

Comments
 (0)