Allow symlinking the run script

This commit is contained in:
Juan Martín Sotuyo Dodero 2018-10-15 04:14:21 -03:00
parent a0be9712dd
commit b75ca07e8e

View File

@ -61,7 +61,9 @@ java_heapsize_settings() {
set_lib_dir() {
if [ -z ${LIB_DIR} ]; then
local script_dir=$(dirname "${0}")
# Allow for symlinks to this script
local script_real_loc=$(realpath "$0")
local script_dir=$(dirname "${script_real_loc}")
local cwd="${PWD}"
cd "${script_dir}/../lib"