From 403a244a99e2b33fd3d4753852fff07c58e8be72 Mon Sep 17 00:00:00 2001 From: Piotr Chabelski Date: Tue, 25 Feb 2025 09:30:22 +0100 Subject: [PATCH] Fall back to the `cs` command on `PATH` in the `mill` script --- mill | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mill b/mill index f2ffbee82f..67b76e2cb3 100755 --- a/mill +++ b/mill @@ -53,6 +53,11 @@ elif [[ "$cache_dest" == *.zip ]]; then fi fi +# If cs is not a valid file, fall back to the `cs` command in PATH +if [ ! -f "$cs" ]; then + cs="$(command -v cs)" +fi + function to_bash_syntax { local S for S in "$@" ; do