Commit 436f47e2 authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'patch-88' into 'master'

Update README.md on script failure due to non-zero exit code

See merge request gitlab-org/gitlab!26670
parents 86b82a8c 62819c5b
......@@ -279,7 +279,7 @@ storing the exit code in a variable:
```yaml
job:
script:
- false && true; exit_code=$?
- false || exit_code=$?
- if [ $exit_code -ne 0 ]; then echo "Previous command failed"; fi;
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment