diff options
-rwxr-xr-x | kvmx | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |