Browse Source

Try harder to download the dependency.

master
poikilos 5 years ago
parent
commit
a7ab374044
  1. 10
      install-mts.sh
  2. 9
      update-minetest-linux64.sh

10
install-mts.sh

@ -28,6 +28,16 @@ else
fi fi
MT_BASH_RC_URL=https://raw.githubusercontent.com/poikilos/EnlivenMinetest/master/$MT_BASH_RC_NAME MT_BASH_RC_URL=https://raw.githubusercontent.com/poikilos/EnlivenMinetest/master/$MT_BASH_RC_NAME
curl $MT_BASH_RC_URL -o "$MT_BASH_RC_PATH" curl $MT_BASH_RC_URL -o "$MT_BASH_RC_PATH"
if [ $? -ne 0 ]; then
#if [ ! -f "$MT_BASH_RC_PATH" ]; then
# This is necessary on cygwin for some reason.
curl $MT_BASH_RC_URL > "$MT_BASH_RC_PATH"
fi
if [ $? -ne 0 ]; then
#if [ ! -f "$MT_BASH_RC_PATH" ]; then
# This is necessary on cygwin for some reason.
wget -O "$MT_BASH_RC_PATH" $MT_BASH_RC_URL
fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo echo
echo "ERROR: Downloading $MT_BASH_RC_URL to $MT_BASH_RC_PATH failed." echo "ERROR: Downloading $MT_BASH_RC_URL to $MT_BASH_RC_PATH failed."

9
update-minetest-linux64.sh

@ -28,11 +28,16 @@ else
fi fi
MT_BASH_RC_URL=https://raw.githubusercontent.com/poikilos/EnlivenMinetest/master/$MT_BASH_RC_NAME MT_BASH_RC_URL=https://raw.githubusercontent.com/poikilos/EnlivenMinetest/master/$MT_BASH_RC_NAME
curl $MT_BASH_RC_URL -o "$MT_BASH_RC_PATH" curl $MT_BASH_RC_URL -o "$MT_BASH_RC_PATH"
#if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
if [ ! -f "$MT_BASH_RC_PATH" ]; then #if [ ! -f "$MT_BASH_RC_PATH" ]; then
# This is necessary on cygwin for some reason. # This is necessary on cygwin for some reason.
curl $MT_BASH_RC_URL > "$MT_BASH_RC_PATH" curl $MT_BASH_RC_URL > "$MT_BASH_RC_PATH"
fi fi
if [ $? -ne 0 ]; then
#if [ ! -f "$MT_BASH_RC_PATH" ]; then
# This is necessary on cygwin for some reason.
wget -O "$MT_BASH_RC_PATH" $MT_BASH_RC_URL
fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo echo
echo "ERROR: Downloading $MT_BASH_RC_URL to $MT_BASH_RC_PATH failed." echo "ERROR: Downloading $MT_BASH_RC_URL to $MT_BASH_RC_PATH failed."

Loading…
Cancel
Save