Skip to content

Commit e24ba6c

Browse files
GedochaoMee-Tree
authored andcommitted
Fall back to the cs command on PATH in the mill script (VirtusLab#3517)
1 parent 91aeba7 commit e24ba6c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mill

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ elif [[ "$cache_dest" == *.zip ]]; then
5353
fi
5454
fi
5555

56+
# If cs is not a valid file, fall back to the `cs` command in PATH
57+
if [ ! -f "$cs" ]; then
58+
cs="$(command -v cs)"
59+
fi
60+
5661
function to_bash_syntax {
5762
local S
5863
for S in "$@" ; do

0 commit comments

Comments
 (0)