From 8356c30791a582ffc357a5522cc5ec9e6c7140a2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 11 Jun 2018 12:24:28 -0300 Subject: Fix kvmx_config config get --- kvmx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kvmx') 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 -- cgit v1.2.3