Update quick-install.sh

This commit is contained in:
jahlib
2026-01-13 23:03:41 +03:00
committed by GitHub
parent 3276de2ec8
commit f381eb7258
+5 -7
View File
@@ -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"