Skip to content

Commit

Permalink
Document how to ignore errors with - in readme (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Oct 3, 2020
1 parent 9bd0720 commit 30fee97
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
# Increment to invalidate github actions caches if they become corrupt.
# Errors of the form "can't find crate for `snafu_derive` which `snafu` depends on"
# can usually be fixed by incrementing this value.
CACHE_KEY_PREFIX: 2
CACHE_KEY_PREFIX: 3

jobs:
all:
Expand Down
20 changes: 20 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,26 @@ string!
"
```
=== Ignoring Errors
Normally, if a command returns a nonzero exit status, execution will stop. To
continue execution after a command, even if it fails, prefix the command with
`-`:
```make
foo:
cat foo
echo 'Done!'
```
```sh
$ just foo
cat foo
cat: foo: No such file or directory
echo 'Done!'
Done!
```
=== Functions
Just provides a few built-in functions that might be useful when writing recipes.
Expand Down

0 comments on commit 30fee97

Please sign in to comment.