Skip to content

Instantly share code, notes, and snippets.

@kharandziuk
Created August 19, 2020 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kharandziuk/603ce10ed56d4534d134ab25b018fb91 to your computer and use it in GitHub Desktop.
Save kharandziuk/603ce10ed56d4534d134ab25b018fb91 to your computer and use it in GitHub Desktop.
ignore non-zero exit code
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