aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-13 21:08:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-13 21:08:41 -0300
commitbf9e7b0c09f2ab23e8f86b37943e17b4ba4ed28d (patch)
tree36534cd34b1b07c55416fe014fcb002d6654a9e1
parent0f7507a977ad2d8819bb8a797a7b4c36e0341063 (diff)
downloadkvmx-bf9e7b0c09f2ab23e8f86b37943e17b4ba4ed28d.tar.gz
kvmx-bf9e7b0c09f2ab23e8f86b37943e17b4ba4ed28d.tar.bz2
List action: check for config folder
-rwxr-xr-xkvmx4
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index 0bf3889..d34cbb2 100755
--- 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