Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# relays and shell commands, but swallows any errors and always returns with
# an exit status of 0
#
# Useful when docker 'RUN' command receives error codes when installing
# applications that can be ignored
#
# TODO: if the first arg starts with '-', then only filter using those
# codes. IE: arg1="-100,101". In this case we will swallow any 100,101
# error codes, but nothing else so any other error codes will still get