From: rhatto Date: Sun, 10 Dec 2006 16:21:19 +0000 (+0000) Subject: simplaret: changed config file evaluation X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=10adc76fb9d27ec744dd40c4ae069ebf5de16dce;p=simplepkg.git simplaret: changed config file evaluation git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@60 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/src/simplaret b/src/simplaret index d892a2b..25d3785 100755 --- a/src/simplaret +++ b/src/simplaret @@ -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 $*