From: Silvio Rhatto Date: Wed, 22 May 2019 21:58:32 +0000 (-0300) Subject: Init: take folder argument into account X-Git-Tag: 0.1.0~128 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cf0ea447916d2bcad99977f2d5634b6c9748c01c;p=kvmx.git Init: take folder argument into account --- 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