SHOW:
|
|
- or go back to the newest paste.
1 | #!/bin/bash | |
2 | START_SERVER='java -jar craftbukkit.jar' | |
3 | ||
4 | - | # clear retval (paranoia from batch-world) |
4 | + | # Clean up from last run |
5 | rm STOP_SERVER | |
6 | - | while [ $? -eq 0 ]; do |
6 | + | # clear retval |
7 | echo | |
8 | while true; do | |
9 | # Pre-execution commands | |
10 | rm -r world/ | |
11 | cp -R world_mod2 world | |
12 | $START_SERVER | |
13 | # Escape clause | |
14 | if [ -a STOP_SERVER ]; then | |
15 | exit 1 | |
16 | fi | |
17 | # Pre-execution commands | |
18 | rm -r world/ | |
19 | cp -R world_mod1 world | |
20 | $START_SERVER | |
21 | # Escape clause | |
22 | if [ -a STOP_SERVER ]; then | |
23 | exit 1 | |
24 | fi | |
25 | done |