dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b8bf3e88f0f47348ea45602d35af5e3b6492c471
parent 1bc57d9214d8fd7a9f4484590b862daf1caa3135
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat,  6 Apr 2019 08:48:23 +0200

Fix removal of unused packages

Diffstat:
Mbin/uu | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/uu b/bin/uu @@ -13,9 +13,10 @@ if [ "$(uname)" = "Linux" ]; then if [[ $(echo "$unused" | wc -l) -gt 1 ]]; then echo "Unused packages:" echo "$unused" - read -p "Delete unused packages? [y/N] " -k -r + printf '%s ' 'Delete unused packages? [y/N]' + read REPLY if [[ $REPLY =~ ^[Yy]$ ]]; then - sudo pacman -Rns $unused + sudo pacman -Rns $(echo $unused | tr '\n' ' ') --noconfirm fi fi