]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Use a stronger subshell syntax at kvmx-vdagent
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Mar 2017 15:20:21 +0000 (12:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 10 Mar 2017 15:20:21 +0000 (12:20 -0300)
kvmx
kvmx-vdagent

diff --git a/kvmx b/kvmx
index 8af9a571959008067ed894246ee6d0c1617cbaa4..fae1279b4a169964e8a12b72b41f711a330a22b7 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -200,6 +200,11 @@ function kvmx_list {
   ls $GLOBAL_USER_CONFIG_FOLDER
 }
 
+# Alias to list command
+function kvmx_ls {
+  kvmx_list
+}
+
 # Upgrade guest
 function kvmx_upgrade {
   echo "sudo apt-get update && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y" | kvmx_ssh
index c19dc84495c1be548b092d7ba5d9bf152bb85c93..9437a8e2203684ec4d2d8ce320ac2f0524c0d1a0 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$" | cut -d ' ' -f 2 | xargs)"
 
 # Kill old instances
 for pid in $instances; do