From 5d05ffe2dd3795df3de4aff46de0d9b87203c900 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Mon, 30 Jun 2025 23:33:54 +0300 Subject: [PATCH] change to actually working instruction --- README.md | 11 +++++++++-- deploy.sh | 13 +++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0ba3c7d..f06f404 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,17 @@ ## 🚀 Quick Start -Deploy your own Minecraft Web Client in seconds with our one-liner script: +Deploy your own Minecraft Web Client in seconds with our interactive script: ```bash -curl -fsSL https://raw.githubusercontent.com/zardoy/minecraft-everywhere/main/deploy.sh | bash +curl -O https://raw.githubusercontent.com/zardoy/minecraft-everywhere/main/deploy.sh +chmod +x deploy.sh +``` + +Then run it: + +```bash +./deploy.sh ``` ## ✨ Features diff --git a/deploy.sh b/deploy.sh index 6e24c39..a6c8ed5 100644 --- a/deploy.sh +++ b/deploy.sh @@ -72,6 +72,18 @@ check_root() { fi } +# Check if running interactively +check_interactive() { + if [[ ! -t 0 ]]; then + print_error "This script must be run interactively." + print_info "Please download and run the script directly:" + print_info " curl -O https://raw.githubusercontent.com/zardoy/minecraft-everywhere/main/deploy.sh" + print_info " chmod +x deploy.sh" + print_info " ./deploy.sh" + exit 1 + fi +} + # Check system requirements check_system() { print_step "Checking system requirements..." @@ -435,6 +447,7 @@ main() { trap cleanup EXIT print_header + check_interactive check_root check_system