|
@ -29,7 +29,7 @@ mcbe-backup worlds-hourly-$hour |
|
|
|
|
|
|
|
|
# 10#$var construction is to force base-10 interpretation of variable |
|
|
# 10#$var construction is to force base-10 interpretation of variable |
|
|
# because otherwise, numbers starting with 0 are interpreted as octal |
|
|
# because otherwise, numbers starting with 0 are interpreted as octal |
|
|
if [[ 10#$hour -eq 1 ]]; then |
|
|
if [[ 10#$hour -eq 4 ]]; then |
|
|
# if no players are present, restart the server |
|
|
# if no players are present, restart the server |
|
|
# should help deal with any memory leaks or other bugs |
|
|
# should help deal with any memory leaks or other bugs |
|
|
players="" |
|
|
players="" |
|
|