Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/bash
- pacman -Qsq | while read line;
- do echo \> checking $line; pacman -Qlq $line | grep -vP '^/etc' | grep -vP '/$' |
- while read line2
- do if [[ ! -e "$line2" ]] && [[ ! -s "$line2" ]]
- then echo $line $line2 | tee -a corrupt; break
- fi
- done
- done
- echo Now run 'xargs pacman -S <<< "$(cut -d "\' \'" -f 1 corrupt)"'
Add Comment
Please, Sign In to add comment