Docker: Update start-latest.sh (grep -i)

Use -i if case changes for the Location: header
This commit is contained in:
ORelio 2022-01-26 13:23:18 +01:00
parent 2dfec8b047
commit 0e2ebf484b

View file

@ -3,7 +3,7 @@
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 location: | cut -d/ -f8) RELEASE_TAG=$(curl -s -v https://github.com/MCCTeam/Minecraft-Console-Client/releases/latest 2>&1 | grep -i location: | 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