From 94980be3e5e5827b75edf9abeab0987709fa3122 Mon Sep 17 00:00:00 2001 From: "Max P." Date: Sat, 27 Sep 2025 22:09:09 +0200 Subject: [PATCH] chore(scripts): check for existing Python installation --- scripts/install-python.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install-python.sh b/scripts/install-python.sh index 6a70504..f5e6864 100755 --- a/scripts/install-python.sh +++ b/scripts/install-python.sh @@ -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