;tools: shake build: fix with no arguments

This commit is contained in:
Simon Michael 2024-09-09 13:06:25 -07:00
parent 33d9b6f35d
commit e79f45a737

View File

@ -586,8 +586,9 @@ main = do
-- This may also update .cabal files from package.yaml files, and/or install haskell deps.
phony "build" $ do
let
pkgs | null args = packages
| otherwise = args
args' = drop 1 args
pkgs | null args' = packages
| otherwise = args'
sequence_ [ do
need $ fromMaybe [] $ lookup pkg embeddedFiles
cmd Shell "stack build " pkg :: Action ()