diff --git a/README.adoc b/README.adoc index 9513aa9..d508c2f 100644 --- a/README.adoc +++ b/README.adoc @@ -48,6 +48,8 @@ sh $ mill --disable-ticker version {mill-version} ---- +* else if there is a file `.config/mill-version`, it's content will be used as mill version. + * The latest mill release available from the Github release pages will be used. * The values of the `DEFAULT_MILL_VERSION` variable inside the script will be used. diff --git a/millw b/millw index 62e5e18..36e0ba8 100755 --- a/millw +++ b/millw @@ -43,6 +43,8 @@ fi if [ -z "${MILL_VERSION}" ] ; then if [ -f ".mill-version" ] ; then MILL_VERSION="$(head -n 1 .mill-version 2> /dev/null)" + elif [ -f ".config/mill-version" ] ; then + MILL_VERSION="$(head -n 1 .config/mill-version 2> /dev/null)" fi fi diff --git a/millw.bat b/millw.bat index 2ea5c03..b5e9edc 100644 --- a/millw.bat +++ b/millw.bat @@ -37,6 +37,11 @@ if [!MILL_VERSION!]==[] ( if exist .mill-version ( set /p MILL_VERSION=<.mill-version ) + else ( + if exist .config\mill-version ( + set /p MILL_VERSION=<.config\mill-version + ) + ) ) if [!MILL_VERSION!]==[] (