diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-03-07 17:43:09 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-03-07 17:43:09 +0000 |
commit | e612a2a43cbbc27824146c3c43ac5f09a4292b1c (patch) | |
tree | d732d6b28058e5112d4252c6dedec7ee9402c052 /app-emulation | |
parent | Change all instances of [ to [[. (diff) | |
download | gentoo-2-e612a2a43cbbc27824146c3c43ac5f09a4292b1c.tar.gz gentoo-2-e612a2a43cbbc27824146c3c43ac5f09a4292b1c.tar.bz2 gentoo-2-e612a2a43cbbc27824146c3c43ac5f09a4292b1c.zip |
Change all instances of [ to [[.
(Portage version: 2.1.2.1)
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/vmware-player/ChangeLog | 6 | ||||
-rw-r--r-- | app-emulation/vmware-player/files/vmware-player.rc | 37 |
2 files changed, 24 insertions, 19 deletions
diff --git a/app-emulation/vmware-player/ChangeLog b/app-emulation/vmware-player/ChangeLog index 7a5a1e8aa80d..cebbdd1e3523 100644 --- a/app-emulation/vmware-player/ChangeLog +++ b/app-emulation/vmware-player/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emulation/vmware-player # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.31 2007/03/05 00:01:45 ikelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/ChangeLog,v 1.32 2007/03/07 17:43:09 wolf31o2 Exp $ + + 07 Mar 2007; Chris Gianelloni <wolf31o2@gentoo.org> + files/vmware-player.rc: + Change all instances of [ to [[. 04 Mar 2007; Mike Auty <ikelos@gentoo.org> files/digest-vmware-player-1.0.2.29634, diff --git a/app-emulation/vmware-player/files/vmware-player.rc b/app-emulation/vmware-player/files/vmware-player.rc index da6eb89f7cd9..18b67ae18c41 100644 --- a/app-emulation/vmware-player/files/vmware-player.rc +++ b/app-emulation/vmware-player/files/vmware-player.rc @@ -1,11 +1,12 @@ #!/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-player/files/vmware-player.rc,v 1.1 2006/08/09 11:54:25 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/files/vmware-player.rc,v 1.2 2007/03/07 17:43:09 wolf31o2 Exp $ depend() { need localmount - use logger net samba + use logger net + after samba } vmware-prettify() { @@ -15,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 @@ -38,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() { |