Accept world arguments to the update option

This commit is contained in:
Jason M. Wood 2013-12-02 21:34:39 -07:00
parent 23263020b5
commit 6620429295

View File

@ -115,8 +115,8 @@ Options:
Run the Minecraft Overviewer mapping software on the Minecraft world. Run the Minecraft Overviewer mapping software on the Minecraft world.
Map all worlds by default. Map all worlds by default.
update update <world>
Update the client and server software. Update the client and server software for the Minecraft world.
EOF EOF
) )
@ -1545,7 +1545,7 @@ case "$1" in
done done
printf ".\n" printf ".\n"
printf "Backing up Minecraft Server:" printf "Backing up Minecraft Server:"
for WORLD in $ALL_WORLDS; do for WORLD in $WORLDS; do
printf " $WORLD" printf " $WORLD"
worldBackup $WORLD worldBackup $WORLD
done done
@ -1559,7 +1559,7 @@ case "$1" in
updateServerSoftware updateServerSoftware
printf ".\n" printf ".\n"
printf "Restarting Minecraft Server:" printf "Restarting Minecraft Server:"
for WORLD in $ALL_WORLDS; do for WORLD in $WORLDS; do
printf " $WORLD" printf " $WORLD"
start $WORLD start $WORLD
done done