aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-05-22 18:58:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-05-22 18:58:32 -0300
commitcf0ea447916d2bcad99977f2d5634b6c9748c01c (patch)
treee3ab6250d83f23f2a608bf4d8857ef9e10b6413b
parent6f1e660b2da52423810a85472c6f7985d3f4e420 (diff)
downloadkvmx-cf0ea447916d2bcad99977f2d5634b6c9748c01c.tar.gz
kvmx-cf0ea447916d2bcad99977f2d5634b6c9748c01c.tar.bz2
Init: take folder argument into account
-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