From ee8fee07e9e246b23404d90a432a157c7ca1472a Mon Sep 17 00:00:00 2001 From: dominiks Date: Sun, 14 Jun 2015 19:40:39 +0200 Subject: [PATCH] fixed broken start scripts --- src/main/java/org/uristmaps/Uristmaps.java | 2 +- src/main/resources/host.bat | 1 - src/main/resources/host.sh | 9 +-------- src/main/resources/uristmaps.sh | 2 +- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/src/main/java/org/uristmaps/Uristmaps.java b/src/main/java/org/uristmaps/Uristmaps.java index 4559328..8b6fc25 100644 --- a/src/main/java/org/uristmaps/Uristmaps.java +++ b/src/main/java/org/uristmaps/Uristmaps.java @@ -24,7 +24,7 @@ */ public class Uristmaps { - public static final String VERSION = "0.3"; + public static final String VERSION = "0.3.1"; /** * The global configuration object. diff --git a/src/main/resources/host.bat b/src/main/resources/host.bat index a244408..c3a45bf 100644 --- a/src/main/resources/host.bat +++ b/src/main/resources/host.bat @@ -1,2 +1 @@ uristmaps.bat host -PAUSE diff --git a/src/main/resources/host.sh b/src/main/resources/host.sh index f6f6a73..7bbe6fa 100644 --- a/src/main/resources/host.sh +++ b/src/main/resources/host.sh @@ -1,9 +1,2 @@ #!/bin/bash -SOURCE="${BASH_SOURCE[0]}" -while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink -DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -SOURCE="$(readlink "$SOURCE")" -[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located -done -DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )" -java -Xmx2048M -Dfile.encoding=UTF8 -jar "${DIR}/uristmaps.jar" "$@" \ No newline at end of file +sh uristmaps.sh host \ No newline at end of file diff --git a/src/main/resources/uristmaps.sh b/src/main/resources/uristmaps.sh index 204f085..3d891ae 100644 --- a/src/main/resources/uristmaps.sh +++ b/src/main/resources/uristmaps.sh @@ -1,2 +1,2 @@ #!/bin/bash -sh uristmaps.sh host +java -Xmx2048M -Dfile.encoding=UTF8 -jar "uristmaps.jar" "$@" \ No newline at end of file