aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx7
1 files changed, 6 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index eeff0e3..b146a28 100755
--- a/kvmx
+++ b/kvmx
@@ -1162,7 +1162,12 @@ function kvmx_init {
fi
else
VM="$FOLDER"
- FOLDER="$(pwd)/$VM"
+
+ if [ ! -z "$2" ]; then
+ FOLDER="$2"
+ else
+ FOLDER="$(pwd)/$VM"
+ fi
fi
if [ -e "$GLOBAL_USER_CONFIG_FOLDER/$VM" ]; then