aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx5
-rwxr-xr-xkvmx-vdagent2
2 files changed, 6 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index 8af9a57..fae1279 100755
--- 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
diff --git a/kvmx-vdagent b/kvmx-vdagent
index c19dc84..9437a8e 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$" | cut -d ' ' -f 2 | xargs)"
# Kill old instances
for pid in $instances; do