diff --git a/dot_bashrc.d/executable_09.functions.tmpl b/dot_bashrc.d/executable_09.functions.tmpl index 0b663d5..2414270 100755 --- a/dot_bashrc.d/executable_09.functions.tmpl +++ b/dot_bashrc.d/executable_09.functions.tmpl @@ -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