This website works better with JavaScript.
Home
Explore
Help
Sign In
maxx
/
dotfiles
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Add a script to deal with pacnew files
master
Maxime Wack
1 year ago
parent
9506467bce
commit
bf3c93edcd
1 changed files
with
16 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save