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
#!/usr/bin/env bash | |
# | |
# "apt-get" wrapper that detects STDERR messages with the prefixes "W:" and "E:" | |
# and redirect some apt-get STDERR messages to STDOUT. | |
# | |
# Returns exit status 120 in case of non-zero apt-get exit status | |
# or in case of detection of STDERR message with the prefix "W:" or "E:". | |
# | |
# The wrapper is intended mainly for use with Dockerfile. | |
# It allows to detect apt-get network errors |