diff options
author | 2007-03-07 17:46:59 +0000 | |
---|---|---|
committer | 2007-03-07 17:46:59 +0000 | |
commit | 84fb02d15ca02b4ac3337a6ffcbbbff86d418bcd (patch) | |
tree | 857f9645d69a694bb1654669cf524879f1da94ae /app-emulation/vmware-workstation/files | |
parent | Add dev-lang/ghc-6.6 and deps to p.mask. (diff) | |
download | historical-84fb02d15ca02b4ac3337a6ffcbbbff86d418bcd.tar.gz historical-84fb02d15ca02b4ac3337a6ffcbbbff86d418bcd.tar.bz2 historical-84fb02d15ca02b4ac3337a6ffcbbbff86d418bcd.zip |
Change all instances of [ to [[.
Package-Manager: portage-2.1.2.1
Diffstat (limited to 'app-emulation/vmware-workstation/files')
-rw-r--r-- | app-emulation/vmware-workstation/files/vmware-workstation.rc | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/app-emulation/vmware-workstation/files/vmware-workstation.rc b/app-emulation/vmware-workstation/files/vmware-workstation.rc index 210db68d9f0e..9085036aac76 100644 --- a/app-emulation/vmware-workstation/files/vmware-workstation.rc +++ b/app-emulation/vmware-workstation/files/vmware-workstation.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-workstation/files/vmware-workstation.rc,v 1.1 2006/08/04 14:46:55 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-workstation.rc,v 1.2 2007/03/07 17:46:59 wolf31o2 Exp $ depend() { need localmount @@ -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() { |