change to actually working instruction
This commit is contained in:
parent
cb2a6d1c7e
commit
5d05ffe2dd
2 changed files with 22 additions and 2 deletions
11
README.md
11
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
|
||||
|
|
|
|||
13
deploy.sh
13
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue