]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Create config folder before checking action
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 13 Nov 2017 21:29:35 +0000 (19:29 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 13 Nov 2017 21:29:35 +0000 (19:29 -0200)
kvmx

diff --git a/kvmx b/kvmx
index 10c4b68fde972e153b85fd7f4bc3c920e6c1c247..d988bb8be11501671040f4bb43f28aa8e6d6620b 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -88,6 +88,9 @@ function __kvmx_initialize {
   # Alias to be used in config files
   KVMX_BASE="$APP_BASE"
 
+  # Initialize
+  mkdir -p $GLOBAL_USER_CONFIG_FOLDER
+
   # Stop processing here for some actions
   if [ "$ACTION" == "init" ] || [ "$ACTION" == "list" ]; then
     return
@@ -103,9 +106,6 @@ function __kvmx_initialize {
   GUEST_DISPLAY="$(((RANDOM % 10) + 1))"
   XDMCP_PORT="$(($RANDOM + 10000))"
 
-  # Initalize
-  mkdir -p $GLOBAL_USER_CONFIG_FOLDER
-
   # Load user config
   if [ -e "$GLOBAL_USER_CONFIG_FILE" ]; then
     source $GLOBAL_USER_CONFIG_FILE