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)" ];
then
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 ];
then
alias aar='sudo apt-get --purge autoremove'