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
#!/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 |