From fd16032a9161815962e3224d8cb2ff7411d76b9b Mon Sep 17 00:00:00 2001 From: Ada Date: Mon, 6 Apr 2026 10:23:09 -0400 Subject: [PATCH] =?UTF-8?q?setup.sh:=20fix=20=E2=80=94=20curl=20prerequisi?= =?UTF-8?q?te=20check,=20exits=20with=20install=20instructions=20if=20miss?= =?UTF-8?q?ing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/setup.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/deploy/setup.sh b/deploy/setup.sh index d9dea71..34fc454 100755 --- a/deploy/setup.sh +++ b/deploy/setup.sh @@ -22,11 +22,16 @@ if ! command -v apt-get &> /dev/null; then exit 1 fi -# Ensure curl is available (not installed on minimal Debian) +# Require curl as a prerequisite (needed to download the script itself) if ! command -v curl &> /dev/null; then - echo "Installing curl..." - apt-get update -qq - apt-get install -y -qq curl > /dev/null 2>&1 + echo "ERROR: curl is required but not installed." + echo "" + echo "Install it with:" + echo " apt-get install curl" + echo "" + echo "Then run this command again:" + echo " curl -sL https://gitea.ledrew.me/ledadmin/project-tracker/raw/branch/master/deploy/setup.sh | bash" + exit 1 fi # Check for Docker