Add verbose versions of apt

This commit is contained in:
Sergey Dolin
2020-10-21 10:29:07 +05:00
parent 215647d28a
commit 82e4ec4a0a
4 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/sh -x
prefix=/usr/local/bin
mkdir -p $prefix
for tool in apt apt-get apt-fast deb;do
real_tool=`which $tool`
cat >$prefix/$tool <<EOT
#!/bin/sh
$real_tool "\$@"
result=\$?
if [ \$result -ne 0 ];then
ps axjf
fi
EOT
chmod +x $prefix/$tool
ls -la $prefix/$tool
cat $prefix/$tool
done