aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-19 10:48:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-19 10:48:04 -0300
commitd81d656fb99617cf9f48b174b3066766d928a870 (patch)
tree0658fbe5f6df217d6b2c20976d11c2c706135861
parent5ebd8554837567e2f8f7cb98b5adb96953c0a2f6 (diff)
downloadkvmx-d81d656fb99617cf9f48b174b3066766d928a870.tar.gz
kvmx-d81d656fb99617cf9f48b174b3066766d928a870.tar.bz2
Fix FOLDER and VM evaluation at kvmx_init
-rwxr-xr-xkvmx3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 28db8a4..2ea0a30 100755
--- a/kvmx
+++ b/kvmx
@@ -1070,6 +1070,9 @@ function kvmx_init {
else
FOLDER="$(pwd)/$VM"
fi
+ else
+ VM="$FOLDER"
+ FOLDER="$(pwd)/$VM"
fi
if [ -e "$GLOBAL_USER_CONFIG_FOLDER/$VM" ]; then