send_server_command: Fix issues with screen stuff command not working

At least on baldras' version of screen, the stuff command argument here
absolutely needs to be wrapped in single or double quotes to work.

I actually fixed this months ago but forgot to commit.
This commit is contained in:
Ignacio R. Morelle 2014-06-12 18:13:48 -04:00
parent 1a1ccea4cb
commit 912456bf29

View file

@ -22,5 +22,5 @@ case "$1" in
restart*)
# delay for a bit to make sure we get the right log file since log rotation is also delayed
sleep 10
screen -S wesnoth-mp-servers -X eval "select lobby-echo" "stuff /wl-old $SERVER\012" ;;
screen -S wesnoth-mp-servers -X eval "select lobby-echo" "stuff \"/wl-old $SERVER\012\"" ;;
esac