Document how to ignore errors with -
in readme (#690)
This commit is contained in:
parent
9bd0720aa1
commit
30fee97f73
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@ -14,7 +14,7 @@ env:
|
|||||||
# Increment to invalidate github actions caches if they become corrupt.
|
# 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"
|
# Errors of the form "can't find crate for `snafu_derive` which `snafu` depends on"
|
||||||
# can usually be fixed by incrementing this value.
|
# can usually be fixed by incrementing this value.
|
||||||
CACHE_KEY_PREFIX: 2
|
CACHE_KEY_PREFIX: 3
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
all:
|
all:
|
||||||
|
20
README.adoc
20
README.adoc
@ -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
|
=== Functions
|
||||||
|
|
||||||
Just provides a few built-in functions that might be useful when writing recipes.
|
Just provides a few built-in functions that might be useful when writing recipes.
|
||||||
|
Loading…
Reference in New Issue
Block a user