update script
This commit is contained in:
parent
9e34785421
commit
79b83d8f33
8
mpt
8
mpt
|
@ -7,13 +7,13 @@ install)
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$HOME/.mpt/mpt.jar" ];
|
if ! [ -f "$HOME/.mpt/mpt.jar" ];
|
||||||
then
|
then
|
||||||
dl=$(curl https://data.tilera.xyz/file/mpt/mpt-latest)
|
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||||
echo Downloading $dl ...
|
echo Downloading $dl ...
|
||||||
curl $dl --output $HOME/.mpt/mpt.jar
|
curl $dl --output $HOME/.mpt/mpt.jar
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
update)
|
update)
|
||||||
dl=$(curl https://data.tilera.xyz/file/mpt/mpt-latest)
|
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||||
echo Downloading $dl ...
|
echo Downloading $dl ...
|
||||||
if [ -f ".mpt/mpt.jar" ]
|
if [ -f ".mpt/mpt.jar" ]
|
||||||
then
|
then
|
||||||
|
@ -22,7 +22,7 @@ update)
|
||||||
curl $dl --output $HOME/.mpt/mpt.jar
|
curl $dl --output $HOME/.mpt/mpt.jar
|
||||||
fi
|
fi
|
||||||
echo Updating Script
|
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" ];
|
if ! [ -d ".mpt" ];
|
||||||
|
@ -33,7 +33,7 @@ update)
|
||||||
elif [ -f "$HOME.mpt/mpt.jar" ];
|
elif [ -f "$HOME.mpt/mpt.jar" ];
|
||||||
then jar=$HOME.mpt/mpt.jar
|
then jar=$HOME.mpt/mpt.jar
|
||||||
else
|
else
|
||||||
dl=$(curl https://data.tilera.xyz/file/mpt/mpt-latest)
|
dl=$(curl https://data.tilera.xyz/api/mpt.php/latest)
|
||||||
echo Downloading $dl ...
|
echo Downloading $dl ...
|
||||||
curl $dl --output .mpt/mpt.jar
|
curl $dl --output .mpt/mpt.jar
|
||||||
jar=.mpt/mpt.jar
|
jar=.mpt/mpt.jar
|
||||||
|
|
Loading…
Reference in New Issue