mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Docker: Fix start-latest.sh (#1924)
Properly remove carriage return when extracting release tag
This commit is contained in:
parent
cc75db7070
commit
6986902938
1 changed files with 2 additions and 2 deletions
|
|
@ -3,10 +3,10 @@
|
||||||
cd /opt/data || exit 1
|
cd /opt/data || exit 1
|
||||||
|
|
||||||
# Get latest release tag
|
# Get latest release tag
|
||||||
RELEASE_TAG=$(curl -s -v https://github.com/MCCTeam/Minecraft-Console-Client/releases/latest 2>&1 | grep -i location: | cut -d/ -f8)
|
RELEASE_TAG=$(curl -s -v https://github.com/MCCTeam/Minecraft-Console-Client/releases/latest 2>&1 | grep -i location: | tr -d '\r' | cut -d/ -f8)
|
||||||
|
|
||||||
# Download latest version
|
# Download latest version
|
||||||
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient.exe --output MinecraftClient.exe
|
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient.exe --output MinecraftClient.exe
|
||||||
|
|
||||||
# Start Client
|
# Start Client
|
||||||
mono MinecraftClient.exe
|
mono MinecraftClient.exe
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue