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

View File

@@ -74,6 +74,11 @@
"script": "{{template_dir}}/scripts/base/apt.sh",
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"script": "{{template_dir}}/scripts/base/apt-mock.sh",
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"script": "{{template_dir}}/scripts/base/limits.sh",

View File

@@ -77,6 +77,11 @@
"script": "{{template_dir}}/scripts/base/apt.sh",
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"script": "{{template_dir}}/scripts/base/apt-mock.sh",
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"script": "{{template_dir}}/scripts/base/limits.sh",

View File

@@ -79,6 +79,11 @@
"script": "{{template_dir}}/scripts/base/apt.sh",
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"script": "{{template_dir}}/scripts/base/apt-mock.sh",
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"script": "{{template_dir}}/scripts/base/limits.sh",