Commit 62819c5b authored by Jesper Noordsij's avatar Jesper Noordsij Committed by Marcel Amirault

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

parent f5c7d8eb
...@@ -279,7 +279,7 @@ storing the exit code in a variable: ...@@ -279,7 +279,7 @@ storing the exit code in a variable:
```yaml ```yaml
job: job:
script: script:
- false && true; exit_code=$? - false || exit_code=$?
- if [ $exit_code -ne 0 ]; then echo "Previous command failed"; fi; - 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