aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-13 19:29:35 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-13 19:29:35 -0200
commit27b5413bd011b4e678976a989b37f2999f3a447c (patch)
tree6457ecc119a3a6a1feda145d5cf7efc9b046fb3c /kvmx
parentf59cfb4ba8751fc529e5dd814f42d90900a892bf (diff)
downloadkvmx-27b5413bd011b4e678976a989b37f2999f3a447c.tar.gz
kvmx-27b5413bd011b4e678976a989b37f2999f3a447c.tar.bz2
Create config folder before checking action
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmx b/kvmx
index 10c4b68..d988bb8 100755
--- 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