summaryrefslogtreecommitdiff
path: root/selfstrap
diff options
context:
space:
mode:
Diffstat (limited to 'selfstrap')
-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 "$@"; }