Browse Source

changes for debian

master
poikilos 7 years ago
committed by Jacob Gustafson
parent
commit
9e0784def5
  1. 9
      etc/game-install-ENLIVEN

9
etc/game-install-ENLIVEN

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Copyright 2017 expertmm. License:
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
@ -34,6 +34,7 @@ err_txt=$HOME/err-enliven.txt
# doesn't work if equal: [ $0 = *"$shell_name"* ]
# could be -bash or bash
#if [ "$0" = "-bash" ]; then
#'[[' doesn't work in debian, so:
if [ $0 == *"$shell_name"* ]; then
REPO_PATH="$HOME/GitHub/EnlivenMinetest"
echo "You must have pasted this into terminal, so assuming REPO_PATH:"
@ -107,7 +108,8 @@ if [ -z "$MT_DEFAULT_WORLD_NAME" ]; then
echo "Could not find any worlds"
fi
#if [ "$0" = "-bash" ]; then
if [[ $0 == *"$shell_name"* ]]; then
#'[[' doesn't work in debian, so:
if [ $0 == *"$shell_name"* ]; then
REPO_PATH="$HOME/GitHub/EnlivenMinetest"
MT_MYWORLD_NAME="world"
echo "You must have pasted this into terminal, so assuming MT_MYWORLD_NAME:"
@ -123,7 +125,8 @@ if [ -z "$MT_DEFAULT_WORLD_NAME" ]; then
read -p "Please enter a world (name only--must be in $MT_WORLDS_DIR): " MT_MYWORLD_NAME
fi
else
if [[ $0 == *"$shell_name"* ]]; then
#'[[' doesn't work in debian, so:
if [ $0 == *"$shell_name"* ]; then
REPO_PATH="$HOME/GitHub/EnlivenMinetest"
MT_MYWORLD_NAME="$MT_DEFAULT_WORLD_NAME"
echo "You must have pasted this into terminal, so assuming MT_MYWORLD_NAME:"

Loading…
Cancel
Save