From b3d81d2f43a56dccc47626e88d180d8af5dfade7 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Fri, 13 Mar 2026 11:58:44 +0100 Subject: [PATCH] Don't prompt for token --- install-scripts/install-endpoint-mac.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/install-scripts/install-endpoint-mac.sh b/install-scripts/install-endpoint-mac.sh index e44d854..f13474d 100644 --- a/install-scripts/install-endpoint-mac.sh +++ b/install-scripts/install-endpoint-mac.sh @@ -95,16 +95,12 @@ main() { # Check if we're running as root if [ "$(id -u)" -ne 0 ]; then - error "Root privileges required. Please run with sudo: sudo sh $0 --token " + error "Root privileges required. Please re-run with sudo, e.g.: curl -fsSL | sudo sh -s -- --token " fi - # Prompt for token if not provided via CLI + # Check if token is provided via command argument if [ -z "$TOKEN" ]; then - printf "Enter your Aikido endpoint token: " - read -r TOKEN - if [ -z "$TOKEN" ]; then - error "Token is required. Pass it with --token or enter it when prompted." - fi + error "Token is required. Pass it with --token or enter it when prompted." fi # 2. Download and verify checksum