summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@cryptonomic.net>2022-01-11 01:37:38 -0500
committerAndrew Cady <d@cryptonomic.net>2022-01-11 01:37:38 -0500
commit6f194a0642ec6e1b5be3459079705e33bc251056 (patch)
tree37187987cdd423532673f939c6769702b8f92d68
parent76ea6800066a6ccd4f4975e213be252179337f2b (diff)
selfstrap: more verbosity
-rwxr-xr-xselfstrap11
1 files changed, 10 insertions, 1 deletions
diff --git a/selfstrap b/selfstrap
index d8514b5..45fd9e8 100755
--- a/selfstrap
+++ b/selfstrap
@@ -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}
130apt_get() { apt_ get "$@"; } 139apt_get() { apt_ get "$@"; }
131apt_cache() { apt_ cache "$@"; } 140apt_cache() { apt_ cache "$@"; }