Skip to content

Commit 6986902

Browse files
authored
Docker: Fix start-latest.sh (#1924)
Properly remove carriage return when extracting release tag
1 parent cc75db7 commit 6986902

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Docker/start-latest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
cd /opt/data || exit 1
44

55
# Get latest release tag
6-
RELEASE_TAG=$(curl -s -v https://github.com/MCCTeam/Minecraft-Console-Client/releases/latest 2>&1 | grep -i location: | cut -d/ -f8)
6+
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)
77

88
# Download latest version
99
curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient.exe --output MinecraftClient.exe
1010

1111
# Start Client
12-
mono MinecraftClient.exe
12+
mono MinecraftClient.exe

0 commit comments

Comments
 (0)