summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2007-03-07 15:23:39 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2007-03-07 15:23:39 +0000
commit59099e183f6f6cd143a31c57ab7d1e509686e0d1 (patch)
treed757621958c15c57be0da8cac17bbf1778a1d616 /eclass/games-q3mod.eclass
parentMIPS love. (diff)
downloadhistorical-59099e183f6f6cd143a31c57ab7d1e509686e0d1.tar.gz
historical-59099e183f6f6cd143a31c57ab7d1e509686e0d1.tar.bz2
historical-59099e183f6f6cd143a31c57ab7d1e509686e0d1.zip
Change from using a single [ to using [[.
Diffstat (limited to 'eclass/games-q3mod.eclass')
-rw-r--r--eclass/games-q3mod.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/games-q3mod.eclass b/eclass/games-q3mod.eclass
index f8900b1385c0..3440889a3f19 100644
--- a/eclass/games-q3mod.eclass
+++ b/eclass/games-q3mod.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/games-q3mod.eclass,v 1.35 2006/10/05 18:54:37 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/games-q3mod.eclass,v 1.36 2007/03/07 15:23:39 wolf31o2 Exp $
inherit games
@@ -110,12 +110,12 @@ start() {
stop() {
ebegin "Stopping ${MOD_NAME} dedicated"
local pid=\`screen -list | grep q3${MOD_BINS}-ded | awk -F . '{print \$1}' | sed -e s/.//\`
- if [ -z "\${pid}" ] ; then
+ if [[ -z "\${pid}" ]] ; then
eend 1 "Lost screen session"
else
pid=\`pstree -p \${pid} | sed -e 's:^.*q3ded::'\`
pid=\${pid:1:\${#pid}-2}
- if [ -z "\${pid}" ] ; then
+ if [[ -z "\${pid}" ]] ; then
eend 1 "Lost q3ded session"
else
kill \${pid}