Log the exit code of run_apt shell function
It seems like this function sometimes doesn't return non-zero exit code even though it fails to fetch some packages (e.g. due to a network error), so log its status code to check if this is really the case.
This commit is contained in:
@@ -17,11 +17,14 @@ case $(uname -s) in
|
|||||||
echo '--- End of APT files dump ---'
|
echo '--- End of APT files dump ---'
|
||||||
|
|
||||||
run_apt() {
|
run_apt() {
|
||||||
echo "Running apt-get $@"
|
echo "-> Running apt-get $@"
|
||||||
|
|
||||||
# Disable some (but not all) output.
|
# Disable some (but not all) output.
|
||||||
$SUDO apt-get -q -o=Dpkg::Use-Pty=0 "$@"
|
$SUDO apt-get -q -o=Dpkg::Use-Pty=0 "$@"
|
||||||
|
|
||||||
|
echo "-> Done with $?"
|
||||||
|
|
||||||
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$wxUSE_ASAN" = 1 ]; then
|
if [ "$wxUSE_ASAN" = 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user