From 79b83d8f331b080d869851a10e3dbb8b0a771eac Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Fri, 21 Aug 2020 23:44:38 +0200 Subject: [PATCH] update script --- mpt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mpt b/mpt index 4e9fc93..329213c 100644 --- a/mpt +++ b/mpt @@ -7,13 +7,13 @@ install) fi if ! [ -f "$HOME/.mpt/mpt.jar" ]; then - dl=$(curl https://data.tilera.xyz/file/mpt/mpt-latest) + dl=$(curl https://data.tilera.xyz/api/mpt.php/latest) echo Downloading $dl ... curl $dl --output $HOME/.mpt/mpt.jar fi ;; update) - dl=$(curl https://data.tilera.xyz/file/mpt/mpt-latest) + dl=$(curl https://data.tilera.xyz/api/mpt.php/latest) echo Downloading $dl ... if [ -f ".mpt/mpt.jar" ] then @@ -22,7 +22,7 @@ update) curl $dl --output $HOME/.mpt/mpt.jar fi echo Updating Script - curl https://data.tilera.xyz/file/mpt/mpt > mpt + curl https://data.tilera.xyz/api/mpt.php/script > mpt ;; *) if ! [ -d ".mpt" ]; @@ -33,7 +33,7 @@ update) elif [ -f "$HOME.mpt/mpt.jar" ]; then jar=$HOME.mpt/mpt.jar else - dl=$(curl https://data.tilera.xyz/file/mpt/mpt-latest) + dl=$(curl https://data.tilera.xyz/api/mpt.php/latest) echo Downloading $dl ... curl $dl --output .mpt/mpt.jar jar=.mpt/mpt.jar