summaryrefslogtreecommitdiff
path: root/mill
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2019-07-08 08:03:34 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2019-07-08 08:07:36 +0800
commita41c632291b017b47e2c40979ffc49b279442f3c (patch)
tree2789f093c59f703e14127e1bb3af45cf415f3ce6 /mill
parentde1e0e4ae3ef0b65075c9896ea25a9b23e2376ee (diff)
downloadmill-a41c632291b017b47e2c40979ffc49b279442f3c.tar.gz
mill-a41c632291b017b47e2c40979ffc49b279442f3c.tar.bz2
mill-a41c632291b017b47e2c40979ffc49b279442f3c.zip
make use of mill file if it exists and we're not already using it
Diffstat (limited to 'mill')
-rwxr-xr-xmill2
1 files changed, 2 insertions, 0 deletions
diff --git a/mill b/mill
index 0e6cfd2a..e4b3424f 100755
--- a/mill
+++ b/mill
@@ -10,6 +10,8 @@ set -e
if [ -z "$MILL_VERSION" ] ; then
if [ -f ".mill-version" ] ; then
MILL_VERSION="$(head -n 1 .mill-version 2> /dev/null)"
+ elif [ -f "mill" ] && [ "$BASH_SOURCE" != "mill" ] ; then
+ MILL_VERSION=$(grep -F "DEFAULT_MILL_VERSION=" "mill" | cut -d= -f2)
else
MILL_VERSION=$DEFAULT_MILL_VERSION
fi