Skip to content

Commit 1e025cd

Browse files
authored
Look for .mill-version in .config directory (com-lihaoyi#945)
See also: https://dot-config.github.io/ Pull request: com-lihaoyi#945
1 parent 8903f22 commit 1e025cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mill

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ set -e
1010
if [ -z "$MILL_VERSION" ] ; then
1111
if [ -f ".mill-version" ] ; then
1212
MILL_VERSION="$(head -n 1 .mill-version 2> /dev/null)"
13+
elif [ -f ".config/mill-version" ] ; then
14+
MILL_VERSION="$(head -n 1 .config/mill-version 2> /dev/null)"
1315
elif [ -f "mill" ] && [ "$0" != "mill" ] ; then
1416
MILL_VERSION=$(grep -F "DEFAULT_MILL_VERSION=" "mill" | head -n 1 | cut -d= -f2)
1517
else

0 commit comments

Comments
 (0)