diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-26 00:07:50 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2007-01-26 00:07:50 +0000 |
commit | 51da06323143ce155d765b5efa0ea10c8cb02147 (patch) | |
tree | 37e368e9b3bc1fc998b17e5ffab3fd2b0e19e3a8 /lib | |
parent | b482f95432539f88754014208ebd38c8291d8eba (diff) | |
download | simplepkg-51da06323143ce155d765b5efa0ea10c8cb02147.tar.gz simplepkg-51da06323143ce155d765b5efa0ea10c8cb02147.tar.bz2 |
eval_parameter small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@126 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common.sh b/lib/common.sh index 2065739..fccca64 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -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 $* |