replace == with = in test comparisons...
...(fixes bug #11496: Unportable test(1) construct)
This commit is contained in:
parent
9d4ce13d1a
commit
c30d246eec
4 changed files with 4 additions and 4 deletions
|
@ -104,7 +104,7 @@ fi
|
|||
# Make tests default in svn version
|
||||
svn_in_version=`expr match "$WESNOTH_VERSION" '.*svn'`
|
||||
test_build=yes
|
||||
if test $svn_in_version == 0
|
||||
if test $svn_in_version = 0
|
||||
then
|
||||
#disabling building tests for release version
|
||||
test_build=no
|
||||
|
|
|
@ -49,7 +49,7 @@ do
|
|||
mv gmon.out gmon.$DATE.out > /dev/null 2>&1
|
||||
# wait a bit so the server is likely up and listening
|
||||
sleep 1
|
||||
if [ "$SERVER" == "1.2" ]; then
|
||||
if [ "$SERVER" = "1.2" ]; then
|
||||
cd $SOURCE/utils/
|
||||
./mp-lobby-logger.pl -j -p $PORT -l $SERVERBASE/currentlobby.log >> $SERVERBASE/logs/lobby-chat.log 2>&1 &
|
||||
fi
|
||||
|
|
|
@ -9,7 +9,7 @@ SERVERBASE=$HOME/servers/$SERVER
|
|||
SOCKET=$SERVERBASE/build/var/run/socket
|
||||
|
||||
shift
|
||||
if [ "$*" == "" ]; then
|
||||
if [ "$*" = "" ]; then
|
||||
message="The server will get restarted now. Please don't forget to save your game!"
|
||||
echo "Sending standard message: $message"
|
||||
else
|
||||
|
|
|
@ -35,7 +35,7 @@ if [ "$2" != "" ]; then
|
|||
fi
|
||||
echo 'svn update...'
|
||||
rev=$(svn up $REVISION | tail -n 1 | sed -e 's/[^0-9]//g')
|
||||
if [ "$rev" == "" ]; then
|
||||
if [ "$rev" = "" ]; then
|
||||
echo "No revision information found."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue