Created
August 19, 2020 08:10
-
-
Save kharandziuk/603ce10ed56d4534d134ab25b018fb91 to your computer and use it in GitHub Desktop.
ignore non-zero exit code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum -y check-update || { rc=$?; [ "$rc" -eq 100 ] && exit 0; exit "$rc"; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment