diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-03-07 17:45:00 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-03-07 17:45:00 +0000 |
commit | fa1cc90668ad78b14cde58631b0fb6d5ddc7ad62 (patch) | |
tree | 36218f5e5bdf7f1e71e9966a7d5da276823f3267 /app-emulation | |
parent | Change all instances of [ to [[. (diff) | |
download | gentoo-2-fa1cc90668ad78b14cde58631b0fb6d5ddc7ad62.tar.gz gentoo-2-fa1cc90668ad78b14cde58631b0fb6d5ddc7ad62.tar.bz2 gentoo-2-fa1cc90668ad78b14cde58631b0fb6d5ddc7ad62.zip |
Change all instances of [ to [[.
(Portage version: 2.1.2.1)
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/vmware-server/ChangeLog | 6 | ||||
-rw-r--r-- | app-emulation/vmware-server/files/vmware-server.rc | 34 |
2 files changed, 22 insertions, 18 deletions
diff --git a/app-emulation/vmware-server/ChangeLog b/app-emulation/vmware-server/ChangeLog index af67762f5702..8d2173ed1591 100644 --- a/app-emulation/vmware-server/ChangeLog +++ b/app-emulation/vmware-server/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emulation/vmware-server # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/ChangeLog,v 1.19 2007/03/05 00:05:09 ikelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/ChangeLog,v 1.20 2007/03/07 17:44:59 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org> + files/vmware-server.rc: + Change all instances of [ to [[. *vmware-server-1.0.2.39867 (04 Mar 2007) diff --git a/app-emulation/vmware-server/files/vmware-server.rc b/app-emulation/vmware-server/files/vmware-server.rc index 238d75989087..0397f5ebe377 100644 --- a/app-emulation/vmware-server/files/vmware-server.rc +++ b/app-emulation/vmware-server/files/vmware-server.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/files/vmware-server.rc,v 1.1 2006/07/31 20:23:50 ikelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server/files/vmware-server.rc,v 1.2 2007/03/07 17:45:00 wolf31o2 Exp $ depend() { need localmount xinetd @@ -16,22 +16,22 @@ vmware-prettify() { msgtype=0 while read line do - [ "$line" == "" ] && continue - if [ "$msgtype" -le "0" ] + [[ "${line}" == "" ]] && continue + if [[ "${msgtype}" -le "0" ]] then - if [ "$msgtype" == "-1" ] + if [[ "${msgtype}" == "-1" ]] then - ewarn $line + ewarn ${line} continue fi - if [ "${line/*:*/}" == "" ] + if [[ "${line/*:*/}" == "" ]] then - einfon $line + einfon ${line} echo eend 0 msgtype=1 else - ewarn $line + ewarn ${line} msgtype=-1 waserror=1 fi @@ -39,25 +39,25 @@ vmware-prettify() { fi # Strip out anything after the <esc> code - message=`echo $line | sed -e "s/^\(.*\).*$/\1/"` - einfon " $message" + message=`echo ${line} | sed -e "s/^\(.*\).*$/\1/"` + einfon " ${message}" echo - echo $line | grep done > /dev/null + echo ${line} | grep done > /dev/null status=$? - eend $status + eend ${status} - if [ "$status" != "0" ] + if [[ "${status}" != "0" ]] then - logger -p local0.err -t vmware-${state} "$line" - waserror=$status + logger -p local0.err -t vmware-${state} "${line}" + waserror=${status} fi done - if [ "$msgtype" == "-1" ] + if [[ "${msgtype}" == "-1" ]] then eend 1 "VMware is not properly configured! See above." fi - return $waserror + return ${waserror} } start() { |