diff options
author | Andrew Cady <d@cryptonomic.net> | 2022-01-11 01:37:38 -0500 |
---|---|---|
committer | Andrew Cady <d@cryptonomic.net> | 2022-01-11 01:37:38 -0500 |
commit | 6f194a0642ec6e1b5be3459079705e33bc251056 (patch) | |
tree | 37187987cdd423532673f939c6769702b8f92d68 | |
parent | 76ea6800066a6ccd4f4975e213be252179337f2b (diff) |
selfstrap: more verbosity
-rwxr-xr-x | selfstrap | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -125,7 +125,16 @@ apt_() | |||
125 | # Avoid deleting lists on the calling system. | 125 | # Avoid deleting lists on the calling system. |
126 | set -- "$@" -o APT::Get::List-Cleanup=false | 126 | set -- "$@" -o APT::Get::List-Cleanup=false |
127 | 127 | ||
128 | eatmydata -- apt-"${apt_cmd}" "$@" | 128 | ( |
129 | set -x | ||
130 | eatmydata -- apt-"${apt_cmd}" "$@" | ||
131 | ) | ||
132 | r=$? | ||
133 | if [ "$r" != 0 ] | ||
134 | then | ||
135 | echo "Error: apt-${apt_cmd} returned $r" >&2 | ||
136 | return $r | ||
137 | fi | ||
129 | } | 138 | } |
130 | apt_get() { apt_ get "$@"; } | 139 | apt_get() { apt_ get "$@"; } |
131 | apt_cache() { apt_ cache "$@"; } | 140 | apt_cache() { apt_ cache "$@"; } |