13 lines
361 B
Bash
Executable File
13 lines
361 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) 2023 fithwum
|
|
# All rights reserved
|
|
|
|
MC_VERSION="1.19.4"
|
|
|
|
TEST=$(curl -s "https://piston-meta.mojang.com/mc/game/version_manifest_v2.json" | grep -Pom 1 '"url": "\K[^"]*'$MC_VERSION'.json')
|
|
|
|
echo "Version url: $TEST"
|
|
|
|
MC_VERSION_CHECK=$(curl -s "$TEST" | grep -Pom 1 '"url": "\K[^"]*server.json')
|
|
|
|
echo "Server url: $MC_VERSION_CHECK" |