From f381eb72580cc8d728bdd019c2efe763745b6950 Mon Sep 17 00:00:00 2001 From: jahlib <60108339+jahlib@users.noreply.github.com> Date: Tue, 13 Jan 2026 23:03:41 +0300 Subject: [PATCH] Update quick-install.sh --- quick-install.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/quick-install.sh b/quick-install.sh index fd4669f..f6d4649 100644 --- a/quick-install.sh +++ b/quick-install.sh @@ -23,17 +23,15 @@ mkdir -p "$CACHE_DIR" echo "" echo "=== WARP Configuration ===" -echo "Please paste your warp.conf content (wg:// URL)" -echo "Press Ctrl+D when done:" -echo "" +read -p "Enter your warp.conf URL (wg://...): " WARP_URL -cat > "$CONFIG_DIR/warp.conf" - -if [ ! -s "$CONFIG_DIR/warp.conf" ]; then - echo "Error: warp.conf is empty!" +if [ -z "$WARP_URL" ]; then + echo "Error: warp.conf URL is empty!" exit 1 fi +echo "$WARP_URL" > "$CONFIG_DIR/warp.conf" + echo "" echo "Configuration saved to $CONFIG_DIR/warp.conf"