From: Silvio Rhatto Date: Sun, 31 Dec 2017 18:55:57 +0000 (-0200) Subject: Fix params at kvmx_supervise_call X-Git-Tag: 0.1.0~286 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=654d21bd283a3741d445912dc083c7a41e53c6ac;p=kvmx.git Fix params at kvmx_supervise_call --- diff --git a/kvmx-supervise b/kvmx-supervise index 433ac56..cf25e48 100755 --- a/kvmx-supervise +++ b/kvmx-supervise @@ -67,6 +67,7 @@ function kvmx_supervise_usage { function kvmx_supervise_call { local user="$1" local vm="$2" + local params=($*) shift 2 # Check parameters @@ -87,7 +88,8 @@ function kvmx_supervise_call { # Dispatch if [ "$supervise_manage" == "1" ]; then - su $user -s /bin/bash -c "kvmx $vm $*" + + su $user -s /bin/bash -c "kvmx ${params[0]} $vm ${params[@]:1}" fi }