aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-11 12:24:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-11 12:24:28 -0300
commit8356c30791a582ffc357a5522cc5ec9e6c7140a2 (patch)
tree3349f8363fec788159d771fbff2268cea561c706 /kvmx
parent8d1967a3f3af633ec41f36938f4e2549e91f12d7 (diff)
downloadkvmx-8356c30791a582ffc357a5522cc5ec9e6c7140a2.tar.gz
kvmx-8356c30791a582ffc357a5522cc5ec9e6c7140a2.tar.bz2
Fix kvmx_config config get
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx2
1 files changed, 1 insertions, 1 deletions
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