]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
eval_parameter small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 26 Jan 2007 00:07:50 +0000 (00:07 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Fri, 26 Jan 2007 00:07:50 +0000 (00:07 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@126 04377dda-e619-0410-9926-eae83683ac58

lib/common.sh

index 2065739d588696805963b2c5a3440c2b56133ea9..fccca64b1fdbc854e8522e10fb5918fc52587286 100644 (file)
@@ -151,7 +151,7 @@ function eval_parameter {
   # return the evaluated parameter if available or $2 $3 ... $n
 
   if grep -qe "^$1=" $CONF; then
-    grep -e "^$1=" $CONF | cut -d = -f 2 | sed -e 's/"//g' -e "s/'//g" | awk '{ print $1 }'
+    grep -e "^$1=" $CONF | cut -d = -f 2 | sed -e 's/"//g' -e "s/'//g" | sed -e 's/#.*$//'
   else
     shift
     echo $*