Browse Source

Add a script to deal with pacnew files

master
Maxime Wack 1 year ago
parent
commit
bf3c93edcd
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      .config/bin/pacconf

+ 16
- 0
.config/bin/pacconf View File

@@ -0,0 +1,16 @@
#!/bin/bash

for file in `find /etc -name '*.pacnew' 2>/dev/null`
do
meld ${file::-7} $file
echo -n "Erase $file ? [y/n]: "
read -n 1 ans
echo
if [[ "$ans" = "y" ]]; then
echo "Removing $file"
rm $file
fi
done



Loading…
Cancel
Save