]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Use awk instead of cut at kvmx-vdagent
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Apr 2017 20:41:54 +0000 (17:41 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 2 Apr 2017 20:41:54 +0000 (17:41 -0300)
kvmx-vdagent

index e938b7499d5dfe39689f16061f22074021416aab..258efe81ec53da17f9285012f0dbd071a7c9e867 100755 (executable)
@@ -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