Guest User

Untitled

a guest
Jan 12th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #! /usr/bin/bash
  2.  
  3. pacman -Qsq | while read line;
  4. do echo \> checking $line; pacman -Qlq $line | grep -vP '^/etc' | grep -vP '/$' |
  5. while read line2
  6. do if [[ ! -e "$line2" ]] && [[ ! -s "$line2" ]]
  7. then echo $line $line2 | tee -a corrupt; break
  8. fi
  9. done
  10. done
  11.  
  12. echo Now run 'xargs pacman -S <<< "$(cut -d "\' \'" -f 1 corrupt)"'
Add Comment
Please, Sign In to add comment