Removed dpkg check, check is already done on installation.
This commit is contained in:
parent
13caedb7b1
commit
03f804f1f3
@ -117,24 +117,14 @@ list-ssh-keys() {
|
||||
{{ if eq .chezmoi.osRelease.id "debian" }}
|
||||
# Show version of a Debian package
|
||||
debversion() {
|
||||
if [ -x dpkg ]; then
|
||||
local pkgname="${1:?packagename required}"
|
||||
dpkg -s $pkgname | grep Version
|
||||
else
|
||||
echo "not a Debian based system!"
|
||||
return 42
|
||||
fi
|
||||
local pkgname="${1:?packagename required}"
|
||||
dpkg -s $pkgname | grep Version
|
||||
}
|
||||
|
||||
# Show files of a Debian package
|
||||
deblist() {
|
||||
if [ -x dpkg ]; then
|
||||
local pkgname="${1:?packagenamme required}"
|
||||
dpkg-query -L $pkgname
|
||||
else
|
||||
echo "not a Debian based system!"
|
||||
return 42
|
||||
fi
|
||||
local pkgname="${1:?packagenamme required}"
|
||||
dpkg-query -L $pkgname
|
||||
}
|
||||
|
||||
# Show apt installation history
|
||||
|
||||
Loading…
Reference in New Issue
Block a user