Skip to content

Commit

Permalink
fixed broken start scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiks committed Jun 14, 2015
1 parent 98c3fb2 commit ee8fee0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/uristmaps/Uristmaps.java
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/host.bat
@@ -1,2 +1 @@
uristmaps.bat host
PAUSE
9 changes: 1 addition & 8 deletions 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" "$@"
sh uristmaps.sh host
2 changes: 1 addition & 1 deletion src/main/resources/uristmaps.sh
@@ -1,2 +1,2 @@
#!/bin/bash
sh uristmaps.sh host
java -Xmx2048M -Dfile.encoding=UTF8 -jar "uristmaps.jar" "$@"

0 comments on commit ee8fee0

Please sign in to comment.