aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx-vdagent2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmx-vdagent b/kvmx-vdagent
index e938b74..258efe8 100755
--- a/kvmx-vdagent
+++ b/kvmx-vdagent
@@ -19,7 +19,7 @@
#
# Get instances
-instances="$(ps -o pid,command -e | grep "spice-vdagent$" | cut -d ' ' -f 2 | xargs)"
+instances="$(ps -o pid,command -e | grep "spice-vdagent$" | awk '{ print $1 }' | xargs)"
# Kill old instances
for pid in $instances; do