SOURCES: bash-completion-vserver.sh - omit grep as awk can do the same

glen glen at pld-linux.org
Tue Nov 18 02:07:08 CET 2008


Author: glen                         Date: Tue Nov 18 01:07:08 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- omit grep as awk can do the same

---- Files affected:
SOURCES:
   bash-completion-vserver.sh (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SOURCES/bash-completion-vserver.sh
diff -u SOURCES/bash-completion-vserver.sh:1.3 SOURCES/bash-completion-vserver.sh:1.4
--- SOURCES/bash-completion-vserver.sh:1.3	Tue Nov 18 02:06:20 2008
+++ SOURCES/bash-completion-vserver.sh	Tue Nov 18 02:07:03 2008
@@ -26,7 +26,7 @@
 
 have vserver-info && {
 
-: ${UTIL_VSERVER_VARS:=$(vserver-info - SYSINFO | grep prefix: | awk '{ print $2}')/$(test -d /lib64 && echo lib64 || echo lib)/util-vserver/util-vserver-vars)}
+: ${UTIL_VSERVER_VARS:=$(vserver-info - SYSINFO | awk '/prefix:/{ print $2}')/$(test -d /lib64 && echo lib64 || echo lib)/util-vserver/util-vserver-vars)}
 test -e "$UTIL_VSERVER_VARS" && {
 
 if [ -z "$_VS_NEWLINE" -o -z "$VS_ALLVSERVERS_ARGS" ]
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/bash-completion-vserver.sh?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list