From 698690293809dec8ce3ff0c96d8566d4fd8d160a Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 5 Feb 2022 23:26:54 +0100 Subject: [PATCH] Docker: Fix start-latest.sh (#1924) Properly remove carriage return when extracting release tag --- Docker/start-latest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docker/start-latest.sh b/Docker/start-latest.sh index b129b681..9e2fb4df 100644 --- a/Docker/start-latest.sh +++ b/Docker/start-latest.sh @@ -3,10 +3,10 @@ cd /opt/data || exit 1 # 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 curl -L https://github.com/MCCTeam/Minecraft-Console-Client/releases/download/${RELEASE_TAG}/MinecraftClient.exe --output MinecraftClient.exe # Start Client -mono MinecraftClient.exe \ No newline at end of file +mono MinecraftClient.exe