From: Frank Brehm Date: Sun, 18 Apr 2021 11:36:55 +0000 (+0200) Subject: Adding bin/update-minecraft-server-jar.sh X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=2d3b8fa7f078499b410f7cc5cc4144cb646925d0;p=pixelpark%2Fadmin-tools.git Adding bin/update-minecraft-server-jar.sh --- diff --git a/bin/update-minecraft-server-jar.sh b/bin/update-minecraft-server-jar.sh new file mode 100755 index 0000000..f7e1ed1 --- /dev/null +++ b/bin/update-minecraft-server-jar.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e +set -u + +BASE_NAME="$( basename ${0} )" +MY_REAL_NAME=$( readlink -f $0 ) +BIN_DIR=$( dirname "${MY_REAL_NAME}" ) +BASE_DIR=$( dirname "${BIN_DIR}" ) +LIB_DIR="${BASE_DIR}/lib" +CONF_DIR="${BASE_DIR}/etc" + +if [[ -f "${LIB_DIR}/functions.rc" ]] ; then + . "${LIB_DIR}/functions.rc" +else + echo "Bash resource file '${LIB_DIR}/functions.rc' not found" >&2 + exit 5 +fi + + +exit 0 + +# vim: et list