Skip to content

Commit

Permalink
Add changed-files
Browse files Browse the repository at this point in the history
  • Loading branch information
za3k committed Jun 1, 2015
1 parent f377e62 commit 650c893
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ asciicam
---
Displays the webcam through ASCII graphics. Just for fun.

changed-files
---
In Arch Linux, lists the config files which have been altered from the default.

confirm
---
(Dead) `cp confirm.txt /usr/share/confirm/confirm` for install. Randomly tells you to avoid a default course of action to switch up habits. Poorly designed, doesn't work.
Expand Down
6 changes: 6 additions & 0 deletions changed-files
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
for package in /var/lib/pacman/local/*; do
sed '/^%BACKUP%$/,/^%/!d' $package/files | tail -n+2 | grep -v '^$' | while read file hash; do
[ "$(md5sum /$file | (read hash file; echo $hash))" != "$hash" ] && echo $(basename $package) /$file
done
done

0 comments on commit 650c893

Please sign in to comment.