]> gitweb.fluxo.info Git - kvmx.git/commitdiff
List action: check for config folder
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 14 Mar 2017 00:08:41 +0000 (21:08 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 14 Mar 2017 00:08:41 +0000 (21:08 -0300)
kvmx

diff --git a/kvmx b/kvmx
index 0bf3889f472d201872b5856fb42447f6e2783568..d34cbb2e9111ec0b699ed7f968b654ef544437a0 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -309,7 +309,9 @@ function kvmx_rsync {
 
 # List guests
 function kvmx_list {
-  ls $GLOBAL_USER_CONFIG_FOLDER
+  if [ -e "$GLOBAL_USER_CONFIG_FOLDER" ]; then
+    ls $GLOBAL_USER_CONFIG_FOLDER
+  fi
 }
 
 # Alias to list command