Browse Source
code styling fix. Codacy Static Code Analysis wasn't happy
pull/3521/head
Clemens Mol
4 years ago
No known key found for this signature in database
GPG Key ID: 1D4F2AC5D22A1E37
1 changed files with
1 additions and
1 deletions
-
lgsm/functions/update_minecraft_bedrock.sh
|
|
@ -8,7 +8,7 @@ |
|
|
|
functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" |
|
|
|
|
|
|
|
#random number for userAgent |
|
|
|
RandNum=$((1 + $RANDOM % 5000)) |
|
|
|
RandNum=$((1 + RANDOM % 5000)) |
|
|
|
|
|
|
|
fn_update_minecraft_dl(){ |
|
|
|
latestmcbuildurl=$(curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -Ls -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.$RandNum.212 Safari/537.36" "https://www.minecraft.net/en-us/download/server/bedrock/" | grep -o 'https://minecraft.azureedge.net/bin-linux/[^"]*zip') |
|
|
|