Fixed a bug in the server "jar" command.

Prevented specifying a jar file name.
This commit is contained in:
Marcus Whybrow 2012-05-31 08:39:43 +01:00
parent 4f354a078b
commit 223f589f9f

View File

@ -944,7 +944,7 @@ server_backup() {
# $2: The name of the jar group # $2: The name of the jar group
# $3: Optionally, a specific jar to use. # $3: Optionally, a specific jar to use.
server_set_jar() { server_set_jar() {
if [ -e "$JAR_STORAGE_PATH/$3" ]; then if [ -e "$JAR_STORAGE_PATH/$2" ]; then
if [ -z "$3" ]; then if [ -z "$3" ]; then
# If a specific jar file is not mentioned # If a specific jar file is not mentioned