diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2019-05-22 18:58:32 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2019-05-22 18:58:32 -0300 |
commit | cf0ea447916d2bcad99977f2d5634b6c9748c01c (patch) | |
tree | e3ab6250d83f23f2a608bf4d8857ef9e10b6413b | |
parent | 6f1e660b2da52423810a85472c6f7985d3f4e420 (diff) | |
download | kvmx-cf0ea447916d2bcad99977f2d5634b6c9748c01c.tar.gz kvmx-cf0ea447916d2bcad99977f2d5634b6c9748c01c.tar.bz2 |
Init: take folder argument into account
-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 |