chore(scripts): check for existing Python installation
All checks were successful
Auto Changelog & Release / release (push) Successful in 14s
All checks were successful
Auto Changelog & Release / release (push) Successful in 14s
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
# Usage: sudo ./install-python.sh
|
||||
set -euo pipefail
|
||||
|
||||
if command -v python3 >/dev/null 2>&1; then
|
||||
echo "ℹ️ Python $(python3 --version) is already installed"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
apt update
|
||||
apt install -y python3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user