aliases.zsh: repaired retrieval of dkms packages

This commit is contained in:
Tobias Schmidl 2019-03-15 05:52:19 +01:00
parent b7c95859b8
commit e09f408f99

View file

@ -20,7 +20,7 @@ function mkcdir () {
if [ -x "$(which lsb_release)" ]; if [ -x "$(which lsb_release)" ];
then then
current_dist=`lsb_release -c -s` current_dist=`lsb_release -c -s`
all_dkms_packages="`apt-cache rdepends --installed dkms | sed -rn 's/^ +([^ ]+)$/\1/p' | sort -iu`" all_dkms_packages="`apt-cache rdepends --installed dkms | sed -rn 's/^ +([^ ]+)$/\1/p' | sort -iu | tr '\n' ' '`"
if [ $use_sudo -eq 1 ]; if [ $use_sudo -eq 1 ];
then then
alias aar='sudo apt-get --purge autoremove' alias aar='sudo apt-get --purge autoremove'