Skip to content

Commit

Permalink
Fix linux issue 'rm: missing operand' when no files match
Browse files Browse the repository at this point in the history
  • Loading branch information
supermario committed Nov 5, 2023
1 parent dcb570a commit afabda1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/research/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
# ${{ runner.os }}-

# Now setup Haskell, given we're comitted to actually doing a lib build
- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
# if: steps.cache.outputs.cache-hit != 'true'
with:
enable-stack: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-windows-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
${{ runner.os }}-
# Now setup Haskell, given we're comitted to actually doing a lib build
- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
if: steps.cache.outputs.cache-hit != 'true'
with:
enable-stack: true
Expand All @@ -72,7 +72,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- uses: haskell/actions/setup@v2
- uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-no-global: true
Expand Down
4 changes: 2 additions & 2 deletions extra/Lamdera/CLI/Reset.hs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ run () () = do
progress $ "Removing artifacts in " <> elmHome
let packageDir = elmHome </> Lamdera.Version.elm </> "packages"
onlyWhen_ (doesDirectoryExist packageDir) $ do
c $ "find " <> packageDir <> " | grep artifacts.dat | xargs rm"
c $ "find " <> packageDir <> " | grep artifacts.x.dat | xargs rm"
c $ "find " <> packageDir <> " | grep artifacts.dat | xargs rm -r"
c $ "find " <> packageDir <> " | grep artifacts.x.dat | xargs rm -r"
else do
nukeDir elmHome

Expand Down

0 comments on commit afabda1

Please sign in to comment.