launch.sh Syntax Error

Discussion in 'Bukkit Help' started by JumanjiCraft, Sep 16, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    JumanjiCraft

    I'm using the smartrestart plugin and I'm getting a syntax error whenever I bash my launch.sh. Here's the error and the sh pste.

    launch.sh: line 17: syntax error near unexpected token `done'
    ++++++++++++++++++
    #!/bin/sh
    BINDIR=$(dirname "$(readlink -fn "$0")")
    cd "$BINDIR"
    while true; do
    echo "run server now , you can't close"
    screen -S 0 java -Xmx500M -Xms500M -jar spigot.jar nogui
    echo "Restart after 5 seconds , you can close now"
    sleep 1
    echo "Restart after 4 seconds , you can close now"
    sleep 1
    echo "Restart after 3 seconds , you can close now"
    sleep 1
    echo "Restart after 2 seconds , you can close now"
    sleep 1
    echo "Restart after 1 seconds , you can close now"
    sleep 1
    done
     
Thread Status:
Not open for further replies.

Share This Page