diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-25 09:05:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-25 09:05:27 +0000 |
commit | 128385a8bec9c088665084414ff0b684323e09d3 (patch) | |
tree | 34d0284d0b47af35aaf47d02614989eef2d2f43d | |
parent | b89d96cbb198f554f03d75b7ea15c7d88dc4b732 (diff) | |
download | alpine-conf-128385a8bec9c088665084414ff0b684323e09d3.zip |
lbu status: only compare files
-rw-r--r-- | lbu.in | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -548,7 +548,8 @@ cmd_status() { local b="$tmp/b/$f" if [ ! -e "$a" ]; then echo "A $f" - elif [ "$b" -nt "$a" ] && ! cmp -s "$a" "$b"; then + elif [ -f "$a" ] && [ -f "$b" ] && [ "$b" -nt "$a" ] \ + && ! cmp -s "$a" "$b"; then echo "U $f" fi done |