From: Silvio Rhatto Date: Mon, 11 Jun 2018 15:24:28 +0000 (-0300) Subject: Fix kvmx_config config get X-Git-Tag: 0.1.0~258 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8356c30791a582ffc357a5522cc5ec9e6c7140a2;p=kvmx.git Fix kvmx_config config get --- diff --git a/kvmx b/kvmx index 0015b79..2425658 100755 --- a/kvmx +++ b/kvmx @@ -1110,7 +1110,7 @@ function kvmx_config { if [ -z "$1" ]; then grep "^$param=" $KVMXFILE | \ - sed -e 's/="/=/' -e 's/"$//' -e "s/='/=/" -e "s/'$//" -e 's/^.*=//' + sed -e 's/="/=/' -e 's/"$//' -e "s/='/=/" -e "s/'$//" -e "s/^$param=//" elif ! grep -q "^$param=" $KVMXFILE; then echo "$param=\"$*\"" >> $KVMXFILE else