replace == with = in test comparisons...
...(fixes bug #11496: Unportable test(1) construct)
This commit is contained in:
parent
f9f3eb2f0c
commit
93e1e73e98
4 changed files with 4 additions and 4 deletions
|
@ -90,7 +90,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
|
||||
|
|
|
@ -61,7 +61,7 @@ do
|
|||
ln -s logs/$LOG ../../$SERVER/current.log
|
||||
# wait a bit so the server is likely up and listening
|
||||
sleep 1
|
||||
if [ "$SERVER" == "1.2" ]; then
|
||||
if [ "$SERVER" = "1.2" ]; then
|
||||
rm -f $SERVERBASE/oldlobby.log
|
||||
mv $SERVERBASE/currentlobby.log $SERVERBASE/oldlobby.log > /dev/null 2>&1
|
||||
ln -s $SERVERBASE/logs/lobby.$DATE.$REV.log $SERVERBASE/currentlobby.log
|
||||
|
|
|
@ -12,7 +12,7 @@ if ! [ -d "$SERVERBASE" ]; then
|
|||
exit 1
|
||||
fi
|
||||
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
|
||||
|
|
|
@ -44,7 +44,7 @@ echo -n 'svn update... '
|
|||
svn up $REVISION > /dev/null
|
||||
rev=$(svnversion -n src/)
|
||||
echo "to $rev"
|
||||
if [ "$rev" == "" ]; then
|
||||
if [ "$rev" = "" ]; then
|
||||
echo "No revision information found."
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue