]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix kvmx_config config get
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Jun 2018 15:24:28 +0000 (12:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 11 Jun 2018 15:24:28 +0000 (12:24 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 0015b79d684aeb85bad9c7aa6e0953f382ee6a47..2425658c36cca757c42ef07765ca244a5a6a0e99 100755 (executable)
--- 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