Author: soliton
Date: Tue May 26 18:56:35 2009
New Revision: 35898
URL: http://svn.gna.org/viewcvs/wesnoth?rev=35898&view=rev
Log:
pacify set -u
Modified:
trunk/utils/mp-server/run_server
Modified: trunk/utils/mp-server/run_server
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mp-server/run_server?rev=35898&r1=35897&r2=35898&view=diff
==============================================================================
--- trunk/utils/mp-server/run_server (original)
+++ trunk/utils/mp-server/run_server Tue May 26 18:56:35 2009
@@ -17,7 +17,7 @@
[ -d "$SERVERBASE"/replays ] || mkdir "$SERVERBASE"/replays
shift
-if [ "$1" = "--test" ]; then
+if [ $# -ge 1 ] && [ "$1" = "--test" ]; then
shift
PARAMETERS="$@"
cd "$SERVERBASE"/build || exit 1
@@ -62,7 +62,7 @@
echo "started $SERVER server with command: 'wesnothd-$SERVER -c
\"$SERVERBASE\"/wesnothd.cfg --port $PORT --threads $THREADS $PARAMETERS'
(revision: $REV, pid: $PID) logging to: $LOG"
# wait a bit in case the process dies immediately
sleep 5
- if jobs 1
+ if jobs 1 > /dev/null
then # create some convenient links
ln -s "$SERVERBASE/logs/$LOG" "$LOG.$PID"
rm -f "$SERVERBASE"/old.log "$SERVERBASE"/old.pid
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits