]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
simplaret: changed config file evaluation
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sun, 10 Dec 2006 16:21:19 +0000 (16:21 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sun, 10 Dec 2006 16:21:19 +0000 (16:21 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@60 04377dda-e619-0410-9926-eae83683ac58

src/simplaret

index d892a2b25b5ca03166cb83f9607ca2b7867e4eed..25d3785b717e2747414dba8305cd1ef18ace15bb 100755 (executable)
@@ -35,7 +35,7 @@ function simplaret_eval_parameter {
   # return the evaluated parameter if available or $2 $3 ... $n
 
   if grep -qe "^$1=" $SIMPLARET_CONF; then
-    grep -e "^$1=" $SIMPLARET_CONF | cut -d = -f 2 | sed -e 's/"//g' -e "s/'//g" | cut -d "#" -f 1
+    grep -e "^$1=" $SIMPLARET_CONF | cut -d = -f 2 | sed -e 's/"//g' -e "s/'//g" | awk '{ print $1 }'
   else
     shift
     echo $*